I am looking to run a macro, which then reruns itself after say, 2 hours.
This was suggested:
sub main
:MainLoop
< all the other code and such is here >
/call restart
/goto :MainLoop
/return
Sub restart
/declare restart_time int local ${Math.Calc[${Math.Rand[60]}+120]}
/delay ${restart_time}m
/return
But it does nothing...
Any suggestions?
This was suggested:
sub main
:MainLoop
< all the other code and such is here >
/call restart
/goto :MainLoop
/return
Sub restart
/declare restart_time int local ${Math.Calc[${Math.Rand[60]}+120]}
/delay ${restart_time}m
/return
But it does nothing...
Any suggestions?