Posts: 6
Threads: 4
Joined: Jan 2019
I have a Macro that I use all the time that I would like to make so it starts at a certain time and stops at a certain time.
Any help would be appreciated.
Thanks much Captain Hook
Posts: 1,337
Threads: 61
Joined: Jul 2006
can use task scheduled task dialog
select the macro/function you want to run at a certain time
click the properties icon on qm window
then click
Posts: 6
Threads: 4
Joined: Jan 2019
Thanks for the help.
I was wondering since the Macro sits there repeating all day long is there a way I can set it up with code in the Macro itself so when it gets to a certain time at night it stops and sits there
and waits for a time in the morning when it continues on again.
Thanks much. Captain Hook
Posts: 6
Threads: 4
Joined: Jan 2019
I was just wondering if anybody has come up with a better solution to this issue.
I would like to be able to just add some code that would make the Macro Pause at a certain time and
then resume at a certain time.
Thanks much
Captain Hook
Posts: 1,337
Threads: 61
Joined: Jul 2006
can always create a launcher function that will start and stop your macro
must be a function
Function
Launcher
int IsSet
rep
,DateTime dt
,dt.FromComputerTime
,str t= dt.ToStr(2)
,if t="8:00 AM" and IsSet=0
,,mac "YourMacroName";;change name to your macro or function name
,,IsSet=1
,if t="8:00 PM"
,,shutdown -6 0 "YourMacroName";;change name to your macro or function name
,,IsSet=0
,5