User Tools

Site Tools


swapping_20the_20mouse_20buttons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

swapping_20the_20mouse_20buttons [2018/03/31 13:19]
127.0.0.1 external edit
swapping_20the_20mouse_20buttons [2018/04/16 14:35] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Swapping the mouse buttons===== =====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:\\ +//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 bb4w>
         SYS "​SwapMouseButton",​ 1         SYS "​SwapMouseButton",​ 1
-To restore the conventional functions for the buttons use:\\ +</​code>​ 
 + 
 +To restore the conventional functions for the buttons use: 
 + 
 +<code bb4w>
         SYS "​SwapMouseButton",​ 0         SYS "​SwapMouseButton",​ 0
-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>​ 
 + 
 +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 bb4w>
         SM_SWAPBUTTON = 23         SM_SWAPBUTTON = 23
         SYS "​GetSystemMetrics",​ SM_SWAPBUTTON TO yes%         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. This will set **yes%** to zero if the mouse buttons are not swapped, and non-zero if they are swapped.
swapping_20the_20mouse_20buttons.txt · Last modified: 2018/04/16 14:35 by richardrussell