Hi,
I want to create a macro that when I press a certain key (say Q), it will first release a list of keys (say WASD,CAPS) if they are pressed then press that key.
could anyone help me code this macro? Thanks in advance.
release other key first then press that key
Re: release other key first then press that key
Hallo,
try:
try:
Code: Select all
#Requires AutoHotkey v2.0
*q::Send "{Blind}{w Up}{a Up}{s Up}{d Up}{CapsLock Up}{q DownR}"
~*q Up::Return
Re: release other key first then press that key
its not working,
it still press the two keys at the same time, what i am looking for is when I press Q, WASD is released even if they are pressed physically
it still press the two keys at the same time, what i am looking for is when I press Q, WASD is released even if they are pressed physically
Re: release other key first then press that key
Then perhaps?:or:or:
Code: Select all
#Requires AutoHotkey v2.0
*q::Send "{Blind}{w Up}{a Up}{s Up}{d Up}{CapsLock Up}{q DownR}"
~*q Up::
q & w::
q & a::
q & s::
q & d::Return
Code: Select all
#Requires AutoHotkey v2.0
~*q::Send "{Blind}{w Up}{a Up}{s Up}{d Up}{CapsLock Up}"
q & w::
q & a::
q & s::
q & d::Return
Code: Select all
#Requires AutoHotkey v2.0
~w::
~a::
~s::
~d::
~CapsLock::Return
w & ~q::Send "{Blind}{w Up}"
a & ~q::Send "{Blind}{a Up}"
s & ~q::Send "{Blind}{s Up}"
d & ~q::Send "{Blind}{d Up}"
CapsLock & ~q::Send "{Blind}{CapsLock Up}"