Code: Select all
CapsLock::
KeyWait, CapsLock
If (A_PriorKey="CapsLock")
SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On"
return
#If GetKeyState("CapsLock", "P")
a:: MsgBox % "You pressed CapLock + a"
b:: MsgBox % "You pressed CapLock + b"
#If
Code: Select all
Control::
KeyWait, Control
return
#If GetKeyState("Control", "P")
a:: MsgBox % "You pressed Control + a"
b:: MsgBox % "You pressed Control + b"
#If