Sign in to follow this  
Followers 0
Belini

Disable the CTRL key.

5 posts in this topic

I'm trying to disable the CTRL more I can not key, tried to create a hotkey more was not possible because the button does not accept hotkey, someone has a tip?

Share this post


Link to post
Share on other sites



More what I need is to disable the CTRL key instead of sending it, I'm having problem with the CTRL key that is pressed on 2 different computers, have changed keyboards and does not solve, think it's virus more I researched and I have not found way to solve this so for this reason I want to disable the CTRL key!

Share this post


Link to post
Share on other sites

Using the info on this site, I managed to disable the left Ctrl key (scan code 1D) and the right Ctrl key (scan code E0 1D) by using RegEdit.exe and manually adding this "valuename", "type",and "value" to the existing "keyname" (HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout).  I then rebooted my computer.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout        Scancode Map     REG_BINARY    00000000000000000300000000001d0000001de000000000

where:-  00000000 00000000 03000000 00001d00 00001de0 00000000

The red "3" is the number of key to be remapped plus one:

The blue "1d00", the left Ctrl key is replaced with the orange null "0000";

The pink "1de0', the right Ctrl key is replaced with the green null "0000";

 

I could not get the following RegWrite to work.  And, after I had manually entered a new value name, I could not get RegDelete to work. 

I am using  Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64) Running:(3.3.12.0)

Local $data = Binary('0x00000000000000000300000000001D0000001DE000000000')
ConsoleWrite($data & @LF)
$s = RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map", "REG_BINARY", $data)
ConsoleWrite($s & "  " & @error & @LF)


;$t = RegDelete("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map ")
;ConsoleWrite($t & "  " & @error & @LF)

After manually deleting the added key name using RegEdit and rebooting, my keyboard was back to normal.

Share this post


Link to post
Share on other sites

Malkey worked perfectly, until I find a permanent solution to my problem this alternative will serve, thank you for helping!

Share this post


Link to post
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
Sign in to follow this  
Followers 0