Is there a way that I press a button for 3-4 seconds only then it sends a command "0" or "1"? thanks

Activation after holding a button
|
Is there a way that I press a button for 3-4 seconds only then it sends a command "0" or "1"? thanks
![]()
20.11.2024, 08:37
------------------------------
Ctrl+F5
20.11.2024, 15:47
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
20.11.2024, 15:53
Try this (not tested)
Code: if not client then
------------------------------
Ctrl+F5 |
« Next Oldest | Next Newest »
|