Activation after holding a button - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Activation after holding a button (/showthread.php?tid=5748) |
Activation after holding a button - Nir70 - 20.11.2024 Is there a way that I press a button for 3-4 seconds only then it sends a command "0" or "1"? thanks RE: Activation after holding a button - Daniel - 20.11.2024 https://kb.logicmachine.net/scripting/short-long-press/ RE: Activation after holding a button - Nir70 - 20.11.2024 thank you Hello, I only need to send a value of 0 (OFF) when pressed for 3-4 seconds (a short press does nothing). What should I refer to in the script? thanks RE: Activation after holding a button - Daniel - 20.11.2024 Try this (not tested) Code: if not client then |