For example:
Code: Select all
Ins:: {
toggle := !toggle
KeyWait 'n'
If A_PriorKey = 'n'
SendText 'N'
}
#HotIf toggle ? GetKeyState('Ins', 'P')
b::SendText 'n' ; perform the alternative action.
else
b::SendText 'b' ; perform the default action.
#HotIf