; Only allow capslock if it's shift-capslock $SC03a:: GetKeyState,caps,CapsLock,T if caps = D SetCapsLockState,Off return
Cheers
-b
; Only allow capslock if it's shift-capslock $SC03a:: GetKeyState,caps,CapsLock,T if caps = D SetCapsLockState,Off return
; CapsLock remapped to Shift, but Shift-,Ctrl-,Win-,Alt- Capslock work as usual CapsLock::Shift ~+CapsLock:: ~^CapsLock:: ~#CapsLock:: ~!CapsLock:: Return
The syntax doesn't support it. You've seen that to disable a key, just put a return after it. For example, the following disables RWin and LWin:Is it OK to Remap to "nothing"?
CapsLock:: Keywait, CapsLock, T0.5 if ErrorLevel SetCapsLockstate,% GetKeyState("CapsLock","T") ? "Off":"On" KeyWait, CapsLock Return
not sure what you mean by this. you apply and undo capslock by holding the capslock key for 0.5 secs. in any event, here is a script you might like. it gets rid of accidental capslock by needing win-capslock. i've kept the code basic.what do I do with the current Hotkey script, how do you undo these things.
capslock::return #capslock:: getkeystate, capslockstate, capslock, t if capslockstate=u setcapslockstate on else setcapslockstate off return