Swapping+the+mouse+buttons

//by Richard Russell, January 2011//

You can swap the mouse buttons, that is reverse the normal actions of the left and right buttons, as follows: code format="bb4w" SYS "SwapMouseButton", 1 code To restore the conventional functions for the buttons use: code format="bb4w" SYS "SwapMouseButton", 0 code Note that the mouse is a shared resource, so any change you make will affect all applications and utilities, not just your program.

You can discover whether the mouse buttons have been swapped as follows: code format="bb4w" SM_SWAPBUTTON = 23 SYS "GetSystemMetrics", SM_SWAPBUTTON TO yes% code This will set **yes%** to zero if the mouse buttons are not swapped, and non-zero if they are swapped.