Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task: A Simple Code to Swap the Left and Right Mouse Buttons
- Author: Raghu
- Date Submitted: 6/13/2000
- Category: Windows Operations
- Compatibility: VB 6,VB 5
- Declarations:
- '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&
- Code:
- SwapMouseButton MB_DEFBUTTON2 ' To Change the left click to right
- SwapMouseButton MB_DEFBUTTON1 ' To Reset to Original Position
Add Comment
Please, Sign In to add comment