Refining an AutoHotkey script
- by roy2012
The purpose of this script is:
The first two rows of hotkeys always effective.
The remaining hotkeys work at NO TEXT INPUT Status only. In other words, when the small vertical lines are flashing anywhere on the screen and waiting for input text / digital, press zxasq, the effect is equal to the normal original letters.
How can I do that?
Rwin::^space
AppsKey::^w
CapsLock::MButton
z::PgUp
x::PgDn
*a up::send {shift up}{ctrl up}{LButton up}
*a::
GetKeyState, LButtonState, LButton ;
if LButtonState = U ;
send {shift down}{ctrl down}{LButton down} ;
return
*s up::send {shift up}{ctrl up}{RButton up}
*s::
GetKeyState, RButtonState, RButton ;
if RButtonState = U ;
send {shift down}{ctrl down}{RButton down} ;
return
*q up::send {shift up}{ctrl up}{MButton up}
*q::
GetKeyState, MButtonState, MButton ;
if MButtonState = U ;
send {shift down}{ctrl down}{MButton down} ;
return