Looking for how to create a script that would finish at 9:00PM each day no matter which time it began. Conceptually, I think I need to grab the system time and craft an if statement that would go to a STOP label but where do I start.
HELP!
Stop time
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I assume this is a looping script? If a repeating script you can set the time you want it to stop repeating in Run Now/Advanced.
If a looping script, add something like this at the end of the loop:
//put this at very end of script
Label>stop
If a looping script, add something like this at the end of the loop:
Code: Select all
Hour>hh
Min>mm
Let>numTime=%hh%%mm%
If>numTime>2100
Goto>stop
Endif
//put this at very end of script
Label>stop
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?