Jump to content

Disable Capslock using Regwrite - (Moved)


Elrond5
 Share

Recommended Posts

So I want to remap Capslock to Ctrl using Autoit

;3A00 = Caps
;1D00 = Ctrl

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout","Scancode Map","REG_BINARY","000000000000000002000000E0473A0000000000")

However it isn't doing anything. And I have no idea why my code doesn't work.

Edited by Elrond5
Link to comment
Share on other sites

If you are using Windows 7 or newer, then the following link may provide some insight.  Specifically, the posts starting around August 24, 2012.

https://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/remap-keyboard-with-scancode-map-for-current-user/34abda0d-721a-4e27-b9a4-044f34dc113a

 

Edited by TheXman
Updated the post date
Link to comment
Share on other sites

Link to comment
Share on other sites

  • 2 weeks later...
On 1/1/2019 at 4:12 AM, Nine said:

try :

Local $res = RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map", "REG_BINARY", _
         "0x0000000000000000020000001D003A0000000000")

 

Thanks I got it working, also I found out I had to do #RequireAdmin

Edited by Elrond5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...