News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Swap mouse buttons

Started by Magnum, April 24, 2016, 12:16:22 PM

Previous topic - Next topic

Magnum

This is supposed to swap the functions of the right and left mouse buttons.

It is not working.

Can someone help me ?

include \masm32\include\masm32rt.inc   

.CONST


.data
   
WaterMark   db  "SiegeWorks 2014 - Present"
%Date       db  " &@Date " ; Compile date
%time       db  " &@Time"

.data?

.code

start:

invoke SwapMouseButton,0

invoke ExitProcess,0

end     start
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

jj2007

Works like a charm on Win7-64, and exactly as MSDN says:

include \masm32\MasmBasic\MasmBasic.inc      ; download
  Init
  invoke SwapMouseButton, 1
  MsgBox 0, "Test", "Hi", MB_OK
EndOfCode

Magnum

Thanks my friend. :-)

Noticed that you used 1.

I will try that.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org