• You are not logged in.
  • Index
  • Technical
  • Easiest method to map capslock to backspace for Windows

    Easiest method to map capslock to backspace for Windows

    • Started by bph
    • 2 Replies:
    • Reputation: 11
    • Registered: 06-Jun-2013
    • Posts: 560

    subject says it all really

    looking for the easiest/most foolproof way to achieve mapping backspace onto capslock, Windows only

    everything else to stay the same, i.e. retain qwerty layout

    ideally, permanently, i.e. the mod persists between turning the machine off and on..

    Last edited by bph (23-Feb-2015 16:20:18)
    Offline
    • 0
    • Reputation: 117
    • From: UK
    • Registered: 14-Apr-2014
    • Posts: 978

    I would go with AutoHotkey as it's fairly simple. And once you start using it you can easily go on to make other remappings too!

    Last edited by stevep99 (24-Feb-2015 18:11:19)

    Using Colemak-DH with Seniply.

    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,361

    Most foolproof way is registry remapping. That's as low-level as it gets, and persistent until OS reinstall (or Registry changes, which never happens in practice). It's not hard to run, but making the script takes knowledge. You can however, use KeyTweak which is a GUI for registry remapping:
    http://www.tucows.com/preview/327616/KeyTweak

    The script can be made to remap the keys globally, or for your user only. The script below will do it globally but there's a line for current_user too as you can see so if that's better just switch. Save this as for instance 'RemapCaps2Back.reg' and run that to add it to your registry. It should be working after a restart.

    REGEDIT4 
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] 
    ; The next line maps the CapsLock key (003a) to a Backspace (000e)
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,0e,00,3a,00,00,00,00,00
    ; The next line removes all scancode remappings
    ;"Scancode Map"=-
    
    [HKEY_CURRENT_USER\Keyboard Layout]
    "Scancode Map"=-
    
    ; Numbers are LittleEndian (0x12345678 -> 78,56,34,12)
    ; ---------------------------------------------------------------------
    ; Bytes          Meaning
    ; ---------------------------------------------------------------------
    ; 00 00 00 00    Version info (usually zero)
    ; 00 00 00 00    Flags (usually zero)
    ; 02 00 00 00    # of entries (# of mappings +1 for the terminator)
    ; 5c e0 1d e0    The RCtrl(e01d) key now sends a RWin(e05c) code (Lwin=e05b)
    ; 00 00 00 00    Null terminator (always zero)

    To get rid of the evidence, use a script with a '-' remap line:

    REGEDIT4 
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] 
    ; The next lines remove any registry scancode remappings present
    "Scancode Map"=-
    
    [HKEY_CURRENT_USER\Keyboard Layout]
    "Scancode Map"=-
    Last edited by DreymaR (24-Feb-2015 16:17:36)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
      • Index
      • Technical
      • Easiest method to map capslock to backspace for Windows