Hello,
The code below is supposed to produce a left click on Windows:
dim x,y As Integer
x=System.MouseX
y=System.MouseY
call RemoteControlMBS.WinMouseClick(x,y,True,True,False) 'Absolute position, left button, right button
call RemoteControlMBS.WinMouseClick(x,y,True,False,False) 'Absolute position, left button, right button
(note the last boolean, for the right button, is always false here).
In my tests, however, the code above triggers both the left and the right buttons, as I can see a contextual menu showing (and I’ve proven the left mouse button is also pressed).
Using the function with one less parameter, like the following example, works as expected and only the left button is pressed:
dim x,y As Integer
x=System.MouseX
y=System.MouseY
call RemoteControlMBS.WinMouseClick(x,y,True,True) 'Absolute position, left button
call RemoteControlMBS.WinMouseClick(x,y,True,False) 'Absolute position, left button
I recognise the latter is more logical to use (though not always), but still, the former has a bug, as False means “leave the button up).
Should this be fixed or I’ve not understood correctly?