How can I check if a button or input is held down on V16Pro, V4Pro or VCore?

Attached is an example that demonstrates the use of variables and the "If Off" command to determine if a input1 and input2 are held down for 5 seconds. 


If they are, the variable "varHeldDown" is set to "true"



To test this example, you can use the "Watch List" to force certain inputs on and off by checking the "Enable Force" column:


In this example, the a "Reboot" of the unit is performed if these inputs are held down. 

Any event could be used, or some other place in the script could use the variable "varHeldDown"

Have more questions? Submit a request