How do I make the caps lock key an additional backspace?

In Windows 10 I've made my caps lock key an additional backspace. In Matlab it does act like a backspace but also toggles CAPSLOCK. How do I turn this off? I've played around with my settings but haven't had any luck and there isn't anything online about this problem.

9 Comments

How did you make this change? Autohotkey?
Then I don't understand how it's possible that in Matlab it still triggers the caps lock key as well. Depending on your script, this question might be better suited to an AHK forum.
Just in case other contributors know a solution, could you share your script?
It's really simple, has one line, in an .ahk which gets run on startup:
CapsLock::BS
That sounds like it shouldn't be possible, and it sounds like an issue better suited to a forum for AHK.
I've read through several AHK forums, the reason I think this is a Matlab issue is that this works with very every other program I use. There is also this post:
It's very strange.
I've managed to solve this.
I found this on this Autohotkey forum:
"AutoHotkey uses a system-wide keyboard hook to suppress the keypress. In most cases this is sufficient, but there are some specialized APIs which will detect it anyway. If the other application uses one of these APIs, there's nothing that we can do about it. (In this case, remapping Capslock via the registry may be effective, since it changes the meaning of that physical key.) "
I followed this guide to Keyboard Remapping to remap the key directrly via the registery.
Using the following code, I created a .reg file and ran that. Works now.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0E,00,3a,00,3a,00,46,00,00,00,00,00
Since this solved your problem, feel free to put it in an answer and mark it as accepted answer.

Sign in to comment.

 Accepted Answer

The Problem is:
"AutoHotkey uses a system-wide keyboard hook to suppress the keypress. In most cases this is sufficient, but there are some specialized APIs which will detect it anyway. If the other application uses one of these APIs, there's nothing that we can do about it. (In this case, remapping Capslock via the registry may be effective, since it changes the meaning of that physical key.) "
Solution
Follow this guide to Keyboard Remapping to remap the key directrly via the registery.
Using the following code if you want to remap CAPSLOCK to BACKSPACE. Created a .reg file using a text editor, save and run it, then reboot. Details in the guide link.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0E,00,3a,00,3a,00,46,00,00,00,00,00

More Answers (0)

Categories

Products

Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!