登录:     


Forum: General Discussion

Topic: Script Mapper assign 3 functions to a button

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Hi,

Can anyone help with the following script syntax.
Like to assing 3 functions to 1 button.
For example the PFL 1 button;
when pressed "PFL deck 1"
when shift and pressed browser_"gotofolder song"
when long pressed "unload deck 1"

appreciated.

freek
 

发表时间 Thu 30 Aug 12 @ 5:23 am
It is made up of these variables

var 'shift' ? action if shifted : action if not shifted

holding ? action if held : action if pressed

To make this

var 'shift' ? browser_gotofolder '/path/to/song' : holding ? unload : select
 

holding ? deck 1 unload : var "$shift" ? browser_gotofolder 'song' : deck 1 pfl
 

Great thanks it works, tried the following just for test on the MC 6000

<map value="POST" action="holding ? deck 1 unload : var &quot;$shift&quot; ? play : deck 1 pfl" />

press pfl on / off
shift press play
press long it unloads

freek
 

@fmooij - Better copy the action from within VDJ. The line you copied is not really usable for the most users beause it will not work in that way.

holding ? deck 1 unload : var &quot;$shift&quot; ? play : deck 1 pfl

means

holding ? deck 1 unload : var '$shift' ? play : deck 1 pfl

this is because specal characters get encoded in the saved XML file.

Greets, Heiko
 



(陈旧帖子或论坛版块会自动关闭)