by Raghu (22 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 13th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A Simple Code to Swap the Left and Right Mouse Buttons
API Declarations
'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&
SwapMouseButton MB_DEFBUTTON1 ' To Reset to Original Postion