Is It Possible To Use OnEvent KeyDown to run another macro?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

Is It Possible To Use OnEvent KeyDown to run another macro?

Post by NickD » Thu Feb 09, 2017 4:03 pm

I wondered if its possible to launch a macro using a KeyDown trigger?
Eg:
-----------------
OnEvent>KEY_DOWN,VK5,0,Timer

SRT>Timer
RunProgram>C:\Program Files (x86)\Macro Scheduler 14\msched.exe "not really a clue about command line but presumably there is a parameter where i would need to specify which macro to run"
End>Timer
-----------------
Basically I want to be able to run a timer separate to my main script so that the timers Wait> does not lock my main script in the timer SRT while the countdown occurs.


Thanks.

NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

Re: Is It Possible To Use OnEvent KeyDown to run another mac

Post by NickD » Thu Feb 09, 2017 4:30 pm

Nvm, figured it out.

SRT>Timer
RunProgram>C:\Program Files (x86)\Macro Scheduler 14\msched.exe Timer
Wait>0.5
END>Timer

Works.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts