I have multiple CustomScriptButtons in toggle mode. I want to change their colour when they are pressed Red/Green. They are doing more than this but for the purposes of this question, that's all I need!
Currently for Button ID 1 I use...
- Code: Select all
<On Click Script>
WDCustomScriptTint,1,255,0,0
<On Release Script>
WDCustomScriptTint,1,0,255,0
I then change the ID value for each of the other buttons. Is there anyway to code this using the ID of the button calling the script i.e....
- Code: Select all
<On Click Script>
WDCustomScriptTint,OWN ID,255,0,0
Or better still could the ID be passed through to a macro, either by storing it in a variable or more directly?
Any suggestions gratefully received.
Chris