Hi,
I'm trying to map the 'e' and 's' keys to XButton4 so that when I hold it down 'e' and 's' are also held down.
I'm able to map one of the keys using XButton1::s but I can't figure out how to map multiple keys.
Any help would be very much appreciated!
Mapping two keys to one mouse button
Re: Mapping two keys to one mouse button
AHK supports the wheel and five mouse buttons as follows. https://www.autohotkey.com/docs/KeyList.htm#mouse-general
Re: Mapping two keys to one mouse button
Thank you but I'm still not sure how to map Xbutton1 (Mouse 4) to more than one key. I can map it so Mouse 4 becomes the 's' key like so
But I don't know how to make it so that Mouse 4 presses both 's' and 'e' keys at the same time.
Code: Select all
Xbutton1::s
s::Xbutton1
Re: Mapping two keys to one mouse button
Code: Select all
XButton1::Send {e down}{s down}
XButton1 Up::
Send {s up}{e up}
SoundBeep, 1500
Return