------
I want to use the Caps key as a modifier key, and using "Shift+Caps" to toggle the Caps' status.
So I test this following script:
Code: Select all
; ;disable Caps native function, this may not be necessary because of the exist of the custom combination.
CapsLock::return
; ;use shift+CapsLock to toggle CapsLock status
+CapsLock::
SetCapsLockState % !GetKeyState("CapsLock", "T") ;
return
; ;using Caps+d to send character 'a'
CapsLock & d::Send, a
1. When I press down the Caps, the light on the keyboard toggled immediately which is annoying. How can I disable it?
2. When I hold on CapsLock and then press a key other than 'd', such as "Caps+w", the CapsLock is not restored to the status before I pressed down the Caps key. How can I prevent it?
I came up with a new idea that I can remap the CapsLock key to another meaningless key by changing the registry using Sharpkeys, then using that Key to achieve my goal. That key should not have any meaning before I using it in case of any unexpected bug, so which key should I choose?
Thank you very much!