Jump to content
Sign in to follow this  
Excalibur

Switching Left Hand and Right Hand mouse function.

Recommended Posts

Excalibur

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

Share this post


Link to post
Share on other sites
Authenticity

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...

Share this post


Link to post
Share on other sites
trancexx

Authenticity is saying this:

DllCall("user32.dll", "int", "SwapMouseButton", "int", 1)

To get it back:

DllCall("user32.dll", "int", "SwapMouseButton", "int", 0)

♡♡♡

.

eMyvnE

Share this post


Link to post
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
Sign in to follow this  

×