Let's simplify your example... this is what you have right now..
B5,xxx,xxx,...,"<SETPRESET1>",@LOAD;GPS_Speed_Pres et1_Config.skin@
B6,xxx,xxx,...,"<SETPRESET2>",@LOAD;GPS_Speed_Pres et2_Config.skin@
To make them in one single button using switchbutton you'd NOT be able to switch the code for the press-and-hold action, so I would suggest you do this instead:
B,xxx,xxx,...,"$LOADMYPRESET$",@$CONFIGMYPRESET$@
Then have this in exectbl.ini (for simplicity):
"LOADPRESET1","<SETPRESET1>" --- will be that whole code in B5 up there
"LOADPRESET2","<SETPRESET2>" --- will be that whole code in B6 up there
"CONFIGPRESET1","LOAD;GPS_Speed_Preset1_Config.ski n"
"CONFIGPRESET2","LOAD;GPS_Speed_Preset2_Config.ski n"
Then all you have to do is (instead of using Switchbutton) is set the variables LOADMYPRESET and CONFIGMYPRESET like this:
Code:To activate preset 1 in the button: "SETVAR;LOADMYPRESET;LOADPRESET1||SETVAR;CONFIGMYPRESET;CONFIGPRESET1" To activate preset 2 in the button: "SETVAR;LOADMYPRESET;LOADPRESET2||SETVAR;CONFIGMYPRESET;CONFIGPRESET2"



LinkBack URL
About LinkBacks
Reply With Quote




. 
Bookmarks