Is there anyway to toggle this script on and off with with a key such as F12 so I can work normally within certain programs?
Code: Select all
keys = ``qwertyuiopasdfghjklzxcvbnm.
; keys = ``1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./
Loop Parse, keys
HotKey ~+%A_LoopField%, Hoty ; Shifted keys to monitor
keys = 1234567890qwertyuiopasdfghjklzxcvbnm
Loop Parse, keys
HotKey ~%A_LoopField%, Normal ; Unshifted keys to register as hotkeys
keys = ``-=[]\;',./ ;!@#$^&*)_+:
Loop Parse, keys
HotKey ~%A_LoopField%, ~Space ; Special chars to keep 2 capitals before
Hoty:
CapCount := SubStr(A_PriorHotKey,2,1)="+" && A_TimeSincePriorHotkey<999 ? CapCount+1 : 1
IfEqual CapCount,2, SendInput % "{BS}{" SubStr(A_ThisHotKey,3,1) "}"
IfEqual CapCount,3, SendInput % "{Left}{BS}+{" SubStr(A_PriorHotKey,3) "}{Right}"
Normal:
Return