susam / uncap Goto Github PK
View Code? Open in Web Editor NEWMap Caps Lock to Escape or any key to any key
License: MIT License
Map Caps Lock to Escape or any key to any key
License: MIT License
I can recommend https://github.com/ililim/dual-key-remap
I ran uncap like this and it doesn't map the mail (0xB4) key to escape, nor the media select key (0xB5):
uncap -d 0xB4:0x1B 0xB5:0x1B 0x14:0x1B
KEYUP - - - UP 28 13 (RETURN)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN - - - - 58 20 (0x14)
KEYDOWN - INJ - - 0 27 (0x1B)
KEYUP - - - UP 58 20 (0x14)
KEYUP - INJ - UP 0 27 (0x1B)
KEYDOWN EXT INJ - - 0 180 (0xB4)
KEYUP EXT INJ - UP 0 180 (0xB4)
KEYDOWN EXT INJ - - 0 181 (0xB5)
KEYUP EXT INJ - UP 0 181 (0xB5)
KEYDOWN EXT INJ - - 0 181 (0xB5)
KEYUP EXT INJ - UP 0 181 (0xB5)
KEYDOWN EXT INJ - - 0 181 (0xB5)
KEYUP EXT INJ - UP 0 181 (0xB5)
KEYDOWN EXT INJ - - 0 180 (0xB4)
KEYUP EXT INJ - UP 0 180 (0xB4)
KEYDOWN EXT INJ - - 0 180 (0xB4)
KEYUP EXT INJ - UP 0 180 (0xB4)
Capslock was on when I ran uncap.exe.
NOW I'M STUCK WITH CAPSLOCK
Hi
Can you please tell me how i can do combo assignment? For instance, Capslock to Win+F11 or so.
thanks
Hi.
I'm using a .bat script in shell:startup to launch uncap to remap some keys on every boot, like so:
> uncap 0x91:0x14
For some time now, after working just fine for a while (hours), the remapping will altogether stop working. If I open task manager I can see the uncap.exe process is still there, so it's not that the process died.
If I manually relaunch this .bat script, the new process will sit right there with the old one in task manager, and everything will go back to working again for a few hours (the amount of time it'll work for doesn't feel particularly consistent).
I basically never turn off my computer completely, only putting it on standby when the day is over. Could that have anything to do with it? I've been using uncap for years now but I never noticed this until somewhat recently.. This is on my Windows 10 desktop, I also use it on a laptop and another desktop at work and I don't think I've ever seen this behaviour in any of those.
I'm a power user so I don't mind delving into the registry or even attaching my debugger to the running process to figure out what may be happening.. any ideas?
It's understood that, in the absence of the -c parameter, uncap.exe runs in the background, i.e. has no visible output. I can run it via "WIN-R uncap.exe" and it behaves as expected.
When invoked from the command line, however (i.e. an instance of CMD.exe already running) uncap.exe will not only run and close itself but the window from which it was called as well, meaning I have to rerun CMD.exe to continue working on the command line. Is that expected behavior?
Hi!
Thanks for creating this utility! Sadly it appears that whenever I am running Uncap, an Output window appears as seen in this screenshot. Do you know what could be the issue?
Windows Version: Windows 10 Pro | 1709 | 16299.402
Uncap Version: 0.2.2
Thank you for this package! This is the simple solution I needed.
Right now I'm putting uncap.exe under my Program Files in C Drive, and whenever I restart Windows I'll have to navigate to the exe file and click to start uncap in the background.
Is there a way to have uncap.exe automatically start running? I'm rather a new Windows user, apologies if this is a rather trivial question.
Thank you for this package! As a new windows user, I'd like to know what's the suggested way to stop uncap.exe if I ever need to?
Any help would be appreciated, thanks in advance.
Hey there, thanks for creating this!
I'm having trouble running the following command:
uncap 0x1B:0x14 0x14:0x11 0x11:0x1B
Which should do the following:
The last one does NOT work.
CAPS successfully acts as CTRL, ESC successfully acts as CAPS.
but CTRL continues to be CTRL.
Any idea how I could fix that?
On my Linux setup, specially with vim/neovim, I have:
CapsLock
and L Control
keys swapped;CapsLock
(physical key location) is pressed for less than ~300ms, then it is not mapped to L Control
, but to Escape
instead.Or, in other words:
L Ctrl
maps to CapsLock
CapsLock
maps to:
L Ctrl
if pressed for longer than 300ms;Escape
otherwise.This allows me to quickly enter normal mode (nvim), cancel things, etc., with little movement from my left hand (and since a lot of keyboard shortcuts use Ctrl key, it is very useful to have Escape in the same place). Having this on Windows as well would be an awesome Windows experience.
Hi, I am switching keys ESC and Caps with uncap 0x1b:0x14
on my local machine (Windows 10), but in my remote desktop (Windows 10), when I press the physical Caps key, I get the behavior of ESC and Caps at the same time. Is there a workaround for this issue?
The line I run at every start-up is:
uncap 0x79:0xAF **0x7B:0xB3** 0x78:0xAE 0x14:0x14
F9 vol up, F12 play/pause, F10 vol down, capslock to capslock
All the other mappings work just fine.
Could uncap read keymap from a file? It will be convenient when map lots of keys. Thanks!
I want to map capslock to control on wsl(ubuntu).
But loadkeys
will report Couldn't get a file descriptor referring to the console
.
I use this program to swap esc and caps lock and left control with left alt:
uncap.exe 0x14:0x1B 0x1B:0x14 0xA2:0xA4 0xA4:0xA2
But inside of video games neither key works. Pressing neither caps lock nor esc brings up the menu.
At least in my case it would be okay if the program didn't work in video games, that is the keys performed their original function. But it seems to break the keys all together.
Any ideas about why that is or how to work around it? If you have any ideas I'll look into fixing it and make a pull request.
I managed to swap my CAPS and ESC using these commands
uncap
uncap 0x1b:0x14
But when I restart Windows they aren't swapped anymore. How can I permanently swap these two keys? You may put this in the REAME.md. If it is already explained in the readme file I think you should make it more clear.
Can we map the caplock key as a set of key combinations such as win+space? Thanks :)
Uncap version 0.3.0
Ran as Win+R : uncap 0x14:0xa2 0xa2:0x14
(swap caps lock and left control)
In Logitech Options, setting a button as Advanced Click; Single click + 'CTRL' modifer, the advanced click is not registering the CTRL modifier, and fires as a regular click.
This was working as expected in the previous release 0.2.2
ps. thanks for the great software that doesn't require admin
I just wanted to say thanks for the wonderful software. I really like that the tool doesn't need admin rights or a reboot, so it is quite portable. I have to switch between macOS, Windows and Linux fairly often and Uncap makes the Windows usage much less painful.
I love the idea and execution of this little tool! It works great on my work laptop, however what would really be amazing is have the same thing but mapping Numlock to literally anything else. Shift or Ctrl for instance. I can't seem to remap anything using uncap unfortunately, I can't save the file in C:/Program Files as I don't have admin permissions. It also runs with the command prompt open and no inputs are recognised when I try to do anything at all.
I'm not great with programming so I would be forever grateful if someone could re-write uncap to do re-map Numlock to Ctrl or Shift by default, as my work machine prevents me from doing just about anything, but uncap seems to work fine from the downloads folder. Thank you in advance for any help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.