shitnbitch

Swap the Left and Right Mouse Buttons Visual Basic

Jan 31st, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.55 KB | None | 0 0
  1. Task: A Simple Code to Swap the Left and Right Mouse Buttons
  2.  
  3. Author:  Raghu
  4. Date Submitted:  6/13/2000
  5. Category:  Windows Operations
  6. Compatibility:  VB 6,VB 5
  7.  
  8. Declarations:
  9.  
  10. 'Code to Swap the Mouse Buttons using API 'Declarations Public Declare Function SwapMouseButton Lib "user32" Alias "SwapMouseButton" (ByVal bSwap As Long) As Long Public Const MB_DEFBUTTON1 = &H0& Public Const MB_DEFBUTTON2 = &H100&
  11.  
  12. Code:
  13.  
  14. SwapMouseButton MB_DEFBUTTON2 ' To Change the left click to right
  15.  
  16. SwapMouseButton MB_DEFBUTTON1 ' To Reset to Original Position
Add Comment
Please, Sign In to add comment