Does anyone know how to implement a button that if pressed normally it executes a function (default) but if one keeps pressing it for a certain time it executes another function?
Maybe this has already been discussed, but I do not know how this dual functionality would be called (so I could run a search).
Thanks in advance.
Long-press button function
Re: Long-press button function
This should do the trick. The delayTime expression is het number of seconds between the first and second function.
All the scripts have comments to explain what's being done but ask any questions necessary;)
Cheers!
MrCorba
All the scripts have comments to explain what's being done but ask any questions necessary;)
Cheers!
MrCorba
- Attachments
-
- SecondFunction.jzml
- (7.93 KiB) Downloaded 114 times
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba
Re: Long-press button function
thank you very much! it is great.
catman
catman
MrCorba wrote:This should do the trick. The delayTime expression is het number of seconds between the first and second function.
All the scripts have comments to explain what's being done but ask any questions necessary;)
Cheers!
MrCorba