Rebinding of keys?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
NewJohn45
Newbie
Posts: 2
Joined: Wed Aug 15, 2018 1:37 am

Rebinding of keys?

Post by NewJohn45 » Sat Aug 18, 2018 3:20 am

Hello
I am a new user switching from ahk to Macro Scheduler but I do not understand how to rebind simple keys.

I would like to bind a key (say by side mouse button - I am not sure what this is in MS syntax VK_XBUTTON1 does not work.) to do the following action, i.e press D, wait then Press T - and to do this whenever I press the number 6.

XButton5::
sendinput D
sleep 50
sendinput T
return

It is binding a macro to a keybind?

Thank you

Is there a way to set relative coordinates to change slightly? For example MouseMoveRel>1012,352 - I want to change the coordinates so they are not in the same spot, but a little varied after every loop

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Rebinding of keys?

Post by Marcus Tettmar » Mon Aug 20, 2018 9:16 am

Hi,

To send D, wait and then send T you would do:

Send>d
Wait>0.05
Send>t

I think by "bind" key you must mean make a hotkey for this macro. To do this in macro properties (where you edit the script) click on the Hot Key tab. Then enter the hot key you wish to use.

I would strongly advise against only using the number 6 as it will prevent you entering a 6 into anything else. I would use something like CTRL+SHIFT+6 or something like that. But this of course is entirely up to you.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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