Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help me script this timer sample
#1
Hi I'm not a programmer but I do love using the basics of this program, which I just record mouse and keyboard movement and set it to run.
I'm trying to program a macro so that it would run different scripts on certain time. I've already read up on some other forum discussion, on timer setting by day and hour, but its very confusing to me. Please write this for me. Thanks. Sample

Run script at 5:00pm
rep 10
lef 1131 237; 0.84
lef 1213 235; 5.19

run script at 5:05pm
rep 10
lef 1147 334; 0.69
lef 1242 335; 0.86

run script at 5:10pm
rep 10
lef 1149 483; 0.66
lef 1231 484; 1.05

run script at 5:10
rep 10
lef 1141 674; 0.50
lef 1225 648; 1
#2
Why don't use task scheduler? It is in Properties dialog.
#3
Gintaras Wrote:Why don't use task scheduler? It is in Properties dialog.
I went to the the system folder containing QM function, and there are directories of Timer script, but there so many of them, I don't know which is correct, I want my script to run based on the time, like setting an alarm when it hits 5:00 pm, it runs the script provided at at the top.
#4
Don't look in System folder, look in Properties dialog.
#5
Gintaras Wrote:Don't look in System folder, look in Properties dialog.
Okay so I found the properties dialog, and applied the task scheduler, but it isn't what I was looking for, I was hoping to have it all under 1 script, instead singular macro file, such as the example given above. But that does help a lot, can you please help me out with what I'm looking for.

I remember stumbling in the forum of some script made by maybe one of the admin concerning some code that runs a script when it hits a certain time in your computer, but unfortunately I have no clue where it is now. Unable to search for it either.
#6
Can use something like that. Simple. Not reliable.

Macro Macro
Code:
Copy      Help
DateTime dt
rep
,0.5
,dt.FromComputerTime
,sel dt.ToStr(2)
,,case "5:00 PM"
,,rep(10) lef 1131 237; 0.84; lef 1213 235; 5.19
,,
,,case "5:05 PM"
,,rep(10) lef 1147 334; 0.69; lef 1242 335; 0.86
,,
,,case "5:10 PM"
,,rep(10) lef 1149 483; 0.66; lef 1231 484; 1.05
#7
This is perfect, thanks, that's what I needed.
Big Grin
MAGNET Wrote:Can use something like that. Simple. Not reliable.

Macro Macro
Code:
Copy      Help
DateTime dt
rep
,0.5
,dt.FromComputerTime
,sel dt.ToStr(2)
,,case "5:00 PM"
,,rep(10) lef 1131 237; 0.84; lef 1213 235; 5.19
,,
,,case "5:05 PM"
,,rep(10) lef 1147 334; 0.69; lef 1242 335; 0.86
,,
,,case "5:10 PM"
,,rep(10) lef 1149 483; 0.66; lef 1231 484; 1.05


Forum Jump:


Users browsing this thread: 2 Guest(s)