Page 1 of 1

pad and custombutton change states

Posted: 30 Jan 2013 22:11
by frz
As I am pretty sure this is a simple question for many people, first, excuse me, I am a newbie.
So, I want a custombutton to change his state each time I touch a pad (I do not want a clone : when I press the pad, cbutton turn off and stay off, when I hit again the pad, cbuttom turn on and stay on).
It seems simple, but I spend time on my lemur, and doesn't find the good script by myself.
Any help ?

Re: pad and custombutton change states

Posted: 31 Jan 2013 07:22
by Softcore
Here's an example! The script "looks up" the state of the custom button and changes it accordingly...Notice the detail here that the script is executed only when x rises from 0 (up arrow, only the press of the pad is "caught", not the release)
pad-changes-button.jzml
(3.5 KiB) Downloaded 77 times

Re: pad and custombutton change states

Posted: 31 Jan 2013 13:02
by frz
Oh thanks very much ! I was so into scripting that I didn't even think the answer was in the execution of the script. Sometimes, I do not see what is right in front of my nose ;-)