bakkulf wrote:
[...]I added the keyremapping in my autohotkey.ini as described by dotoshi in:
http://www.autohotkey.com/forum/topic298-15.html#9853
I found a serious problem with mapping a key to be WinKey
Currently I'm using a script that sends WinKey down, loops to check when the key is to be released (Loop, sleep, GetKeyState, if state=u -> ), and then sends WinKey up; see description
in this post).
Actually, if I use the default win-shortcut (WinKey+L) to lock my computer, I'm not able to log in again. Since the computer locks with WinKey down, the script then never gets the key released, and I cannot enter the letter "l" (small L) in the password field. However, I can press u (that actually gets WinKey+u) to bring up the utility manager, where I can start the On Screen Keyboard and fiddle around a bit with the WinKey on the keyboard. Then, apparently the key finds it's up-state, and I can again log in with my password accidentally containing a lower-case L.
A quick-and-dirty fix is of course to change to a password without l and u, but I
would prefer a more stable solution
Any ideas? (eg. by implementing a timer in the script that would let go of the down-state e.g. after 5 seconds?)