so I wanted to map WASD to arrow keys when I'm holding XButton2 on the mouse.
the code below works great with modifiers ("Holding XButton2 + Ctrl + left" sends "Ctrl+Left"), but it stops XButton2 from working normally:
Code: Select all
XButton2 & w:: send, {up}
XButton2 & a:: send, {Left}
XButton2 & s:: send, {Down}
XButton2 & d:: send, {Right}
XButton2 & e:: send, {PgUp}
XButton2 & q:: send, {PgDn}
Code: Select all
~XButton2 & w:: send, {up}
~XButton2 & a:: send, {Left}
~XButton2 & s:: send, {Down}
~XButton2 & d:: send, {Right}
~XButton2 & e:: send, {PgUp}
~XButton2 & q:: send, {PgDn}
~XButton2 & w::
if getkeystate("ctrl","P")
{
if getkeystate("Shift","P")
{
send, ^+{up}
}
else
send, ^{up}
}
else if getkeystate("Shift","P")
send, +{Up}
else
send, {up}
return
Any thoughts?