Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows - Map a Keyboard Key to the Same Action as Left Mouse Button

Is the a programmatic way (or something more simple) to map some keyboard key to the same action windows-wide as the left mouse button in Windows XP / Vista. If programmatic is there a way to do this in .NET 2.0 (or greater)?

like image 621
BuddyJoe Avatar asked Dec 13 '25 19:12

BuddyJoe


2 Answers

There is a programmatic way, and it is possible in C# with a global hook. But I find tools like AutoHotkey, which were made for this sort of thing, are much quicker to get up and running. The scripts can also be compiled to executables.

You could also turn on Accessibility MouseKeys via the Accessibility Options

like image 42
benPearce Avatar answered Dec 16 '25 22:12

benPearce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!