Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
constantly run macro
#1
I've made a macro that opens notepad only if the hour is 4, meaning it could be any time between 4:00 and 4:59.
Code:
Copy      Help
str t
t.time("%I")
if t = 04
    run "notepad.exe"
I want this program to run constantly, and when the hour turns 4, notepad opens. Is there any way to do this?

also, i would like to know if there is any way for it to open if the hour is an odd number.
#2
well you can schedule it to run at 0400 by right-clicking on the macro name and go into the properties and click the shortcut button. Then drag that shortcut to the "schedule tasks" window and then set it to 0400.

If you want a macro to run all the time, make it a function (cuz only one macro can run at a time) and put a rep statement in it to repeat forever and then tell it to wait so many seconds (1800 is 30 minutes).


let me know if you're unsure how to do this.


Forum Jump:


Users browsing this thread: 1 Guest(s)