Excalibur Posted February 5, 2009 Posted February 5, 2009 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
Authenticity Posted February 5, 2009 Posted February 5, 2009 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...
trancexx Posted February 5, 2009 Posted February 5, 2009 Authenticity is saying this: DllCall("user32.dll", "int", "SwapMouseButton", "int", 1) To get it back: DllCall("user32.dll", "int", "SwapMouseButton", "int", 0) ♡♡♡ . eMyvnE
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now