by alverman » Wed Jun 06, 2012 10:27 am
Since you can not use nested if I decided to create two macros that contain if that control the value of a variable, but each seems to work.
I put in the button script:
- Code: Select all
if StopFade = 1
{
WDFaderAbortAllFades
AtoB_State
BtoA_State
}
where the macro BtoA_State contains:
- Code: Select all
if BtoA = 1
{
WDCustomScriptSilentClickToggle,4
WDFaderDown,1,FadeTime
WDFaderUp,2,FadeTime
}
and the macro AtoB_State contains:
- Code: Select all
if AtoB = 1
{
WDCustomScriptSilentReleaseToggle,4
WDFaderUp,1,FadeTime
WDFaderDown,2,FadeTime
}
Thanks, Alberto
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **