This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

INIT SCRIPT
#6
One simple solution is to use a single resident script and poll button state periodically. If the state changes then run the open/close algorithm. Once it's finished then the polling starts again. Just make sure to add a delay between polling (at least 0.5 seconds) so you don't overload the CPU.
Reply


Messages In This Thread
INIT SCRIPT - by Frank68 - 25.03.2021, 10:28
RE: INIT SCRIPT - by admin - 25.03.2021, 11:05
RE: INIT SCRIPT - by Frank68 - 25.03.2021, 12:01
RE: INIT SCRIPT - by admin - 25.03.2021, 12:05
RE: INIT SCRIPT - by Frank68 - 25.03.2021, 13:23
RE: INIT SCRIPT - by admin - 25.03.2021, 14:47

Forum Jump: