Jump to content

Exchange Blog Cryptocurrency Blog


All Pips



Swap Mouse buttons using win32 API


Recommended Posts

To swap the mouse buttons you need the function SwapMouseButton whose declaration is shown here:

 

Declare Function SwapMouseButton Lib "user32" (ByVal bSwap As Long) As Long

 

Set the argument bSwap to a non-zero value to swap the mouse buttons. Set it to zero to return to the normal non-swapped state.

 

Most of the microsofts programming languages including VB and VFP support calling win32 api. So now you should be able add swapmousebutton funtionality to your applicaton.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...