Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KBM] Remap Key to Mouse Click #3364

Open
vinnyjames opened this issue May 20, 2020 · 49 comments
Open

[KBM] Remap Key to Mouse Click #3364

vinnyjames opened this issue May 20, 2020 · 49 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager

Comments

@vinnyjames
Copy link

Be nice if keyboard keys could be re-assigned to mouse keys. E.g. I like to use F1 to send a mouse left mouse click.

@Aaron-Junker
Copy link
Collaborator

If we make this, we should look that is also works in the opposite direction.

#11578 (comment) by @Jay-o-Way

@Kesanov
Copy link

Kesanov commented Jun 12, 2021

Please, yes!
That would be very useful in combination with eye tracking software.

@PGSystemTester
Copy link

So in PowerToys present state (or version 0.45.0) one cannot use a modifier key combined with left click? I agree this would be great to have. Would this be difficult to develop? I have someone that might be willing to pay someone to do this.

@eezTool
Copy link

eezTool commented Oct 10, 2021

need this function, thank you very much

@Jay-o-Way
Copy link
Collaborator

... Would this be difficult to develop? I have someone that might be willing to pay someone to do this.

CC @crutkas might be interested.

@Thespikedballofdoom
Copy link

plz

@Jay-o-Way
Copy link
Collaborator

I still don't understand what the use case is. You still need a mouse to move the cursor, so why not click it? Or use Windows mouse keys?

@crutkas
Copy link
Member

crutkas commented Nov 9, 2021

Accessibility comes to mind.

@PGSystemTester
Copy link

My use case was to have a modifier key to allow the mouse buttons to do more than simply left/right click.

@Sunspark-007
Copy link

There are input devices that don't have buttons, and I was actually just now looking for utilities that would let me do clicks using the keyboard.

@Sunspark-007
Copy link

In theory it should have worked.. left click is supposedly VK 01, but trying that key remap does nothing at the current time.

@Jay-o-Way
Copy link
Collaborator

In theory it should have worked.. left click is supposedly VK 01, but trying that key remap does nothing at the current time.

Yeah, googled and found this list http://www.kbdedit.com/manual/low_level_vk_list.html which has the following note:

**) "mouse button" quasi VK codes are generated by Windows when user clicks left/middle/right/X1/X2 mouse buttons. KbdEdit allows these codes to be assigned to physical keys, but such mappings make no sense: pressing a key with VK_LBUTTON assigned to it will NOT make Windows act as if physical mouse button was pressed.

The page https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes does not have any similar notes.

@cybairfly
Copy link

Indeed, this would be extremely useful in combination with eye tracking - especially in AR etc. Any progress on this please?

@crutkas
Copy link
Member

crutkas commented Dec 17, 2021

Not something currently on our roadmap

@tonys1110
Copy link

Yes, please to this, and the reverse (mapping mouse to keyboard). I'd love to be able to map Ctrl+MouseWheelUp/Down to VolumeUp/Down. etc.

@goyalyashpal
Copy link

Or use Windows mouse keys?
- @ Jay-o-Way at #3364 (comment)

i was thinking same. this issue seems to be like "allow customising windows mouse keys"

@wslawski-printify
Copy link

I still don't understand what the use case is. You still need a mouse to move the cursor, so why not click it? Or use Windows mouse keys?

Easiest use case - when connecting from android to windows through any remote desktop software(for example steam link or something else) it's often that right mouse button on android is just doing "back" on windows, acting as escape key I think. So that's one of the ideas where such remapping could make sense.

@cadnav
Copy link

cadnav commented Jan 19, 2024 via email

@Sunspark-007
Copy link

My interest in it is because I was originally looking at a trackball that doesn't have buttons, only the ball. My regular keyboard only has 1 button above the number row, and that's already mapped to a single F-key.

So in the use-case of a trackball with no buttons, it would only work if mapping could be assigned to either foot pedals or usb extra-keys block like some gamers have or just F-keys on a standard 104 layout.

@cadnav

This comment was marked as spam.

@thefasquelle
Copy link

I would like to remap ctrl + plus/minus to ctrl + scroll for apps that do not support it.
I would also like to remap ctrl + left click and others to kb shortcuts

@Mamoon-B
Copy link

Please, i would love to be able to switch desktops without taking my hand off the mouse. ctrl+win+left/right arrow keys is too much work for a high paced environment, i want to switch it to ctrl + side buttons on my mouse.

@AlexZ005
Copy link

There is a fantastic C# application called KeyCur that I've been using for years, with the latest changes made over 10 years ago, but it still works on the latest Windows: https://github.com/shuhan/KeyCur.

This allows me to remap mouse buttons to keyboard keys. All other alternatives like AutoHotKey and similar tools either were hard to configure or had lots of disadvantages, such as causing an inability to drag items when a keyboard button is being held or glitching in some other ways.

Furthermore, KeyCur has an "Activation Key" function which allows me to easily switch states between normal and mouse-mapped keyboard. The only disadvantage of KeyCur is its inability to operate on "Run as Admin" window prompts, however it does work on windows that run as administrator if KeyCur itself runs as admin.

Possibly the functionality or some code in the repo above can help in writing a feature everyone requests in this issue.
KeyCur binaries and screenshot: shuhan/KeyCur#1"

@asafm7
Copy link

asafm7 commented Jun 9, 2024

It would be great to have Middle Mouse Click Paste functionality like Ubuntu's GNOME Tweaks offers

@barak1412
Copy link

Person with physical disabiity here.

This feature is a world changer for me, regading working with my laptop.
Currently I use my own code, which I couldn't right-click or drag-and-drop without.

4 years discussion for such basc and helpful feature is someting I can not understand.

Thanks.

@CliftonTheCodeCooker
Copy link

This is insane that the mouse left and right click can't just be remapped, I have issues in my hands, shoulder, and arms. The only way I can comfortably use my laptop is to lay my hand flat, control the mouse with the central button and have 2 keys around it remapped. This shouldn't have to be explained, just make the feature.

@NTT1906
Copy link

NTT1906 commented Oct 2, 2024

I would love this to be true in the near future.

@shanekunz
Copy link

+1. plz make the feature! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager
Projects
Status: No status
Development

No branches or pull requests