Jump to content

Switching Left Hand and Right Hand mouse function.


Recommended Posts

I was wondering if there was a way to switch the windows left handed and right handed mouse support. I've got a script that does it by executing the main.cpl (mouse control panel applet) and running keyboard and mouse events on that, however with my latest laptop, it changed the entire interface for the mouse panel, so I was wondering if there was a more direct way to call a left handed/right handed mouse switch to windows. Thanks for the help.

Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein
Link to comment
Share on other sites

Use DllCall with 'user32.dll' and call GetSystemMetrics with 23 as the parameter, if the return value is non-zero the buttons are swapped. You can use SwapMouseButton function (again DllCall with 'user32.dll') and send True to swap buttons (left produces right and vice versa), False reset it to left-left right-right...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...