Code: Select all
n::
KeyDown2 := !KeyDown2
If KeyDown2
Send {y down}
Else
Send {y up}
Return
w::
kstate := GetKeyState("y", "P")
Msgbox, %kstate%
Return
If I press w after n(without touching y), msgbox reads 1. Getkeystate mode is p, so I guess it should reads 0 not 1.
Did I mess up something?
Thanks in advance.