21
Coding Snacks / Re: re-map capslock function
« on: December 26, 2013, 01:47 PM »Probably what you're looking for hgondalf:*$Capslock::
SetStoreCapslockMode,On
If !GetKeyState("Control","P"){
Send,{Shift down}
KeyWait,CapsLock
Send,{Shift up}
}else If GetKeyState("CapsLock","T")
SetCapsLockState,Off
else SetCapsLockState,On
return-AfterLemon (December 10, 2013, 09:50 AM)
I too remap the Capslock key. This works great, AfterLemon, except for one thing, which i find happens every time i attempt to remap this key on my win7 x64 laptop, that the first press of the remapped key takes windows' focus off the active window for a significant period of time, perhaps as much as 4 seconds, during which any keypresses are eaten. with your script running, i started typing, and kept typing while i held down the capslock key, the next 7 keystrokes were eaten. the point for me to remap the key is so clumsily pressing the wrong key doesn't stop me from continuing to type. can this be fixed?