Posts: 156
Threads: 40
Joined: Mar 2021
Reputation:
2
06.11.2024, 09:01
(This post was last modified: 06.11.2024, 09:03 by Fahd.)
Hi,
I'm controlling a scheduled script using a 1-bit object by enabling and disabling the script. How can I run the script immediately after turning it on without copying the entire script into an event-based script?
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
Why don't you just create event script and control it via normal Scheduler? You can then trigger such script any time you want.
------------------------------
Ctrl+F5
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
Well you can do exactly the same with scheduled script combined with event. The script itself would be in event script and the scheduled script would just writ a value to event trier object to to run it. While enabling scheduled script just write value to event trier object to start it.
------------------------------
Ctrl+F5