Mouse Macro

Ask gaming related questions
Novelty1
Posts: 10
Joined: 25 Feb 2018, 03:10

Mouse Macro

18 Apr 2018, 06:57

Hey, im new to this scripting, today im trying to make a mouse macro.

\::Suspend

XButton2::Q

I tried it, and it worked fine. Now i want that "XButton2" click to send the "Q" and "E" with a 0.5 second delay but it doesn't work. I tried to use the Send and ControlSend commands but seems like it doesn't work for me.
Can anyone help me finish this script ?
User avatar
evilC
Posts: 4337
Joined: 27 Feb 2014, 12:30

Re: Mouse Macro

19 Apr 2018, 12:38

XButton::Q maps press of xb2 to press of q, and release of xb2 to release of q.
Send q, on the other hand, by default, presses then *immediately* releases q (As in 0ms gap between press and release), which many games do not like.

Try to add SetKeyDelay, 0, 50 to the start of the script, to tell AHK to hold all keys for 50ms (Which should give the game a chance to see it)

Also, you may need to run the script as admin.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests