Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

RemoteControl.ClickMouse

Moves the mouse cursor and performs a click.

Component: RemoteControl
Version: 2.8
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "RemoteControl.ClickMouse"; x; y { ; down; ButtonIndex } )

Parameters

Parameter Description Example value
x New x position of the mouse. 500
y New y position of the mouse. 500
down Optional
Pass 1 to press mouse button and 0 to release it. If this parameter is missing, the plugin will click and release in one step.
1
ButtonIndex Optional
Optional, pass 2 for the right mouse instead of left mouse. Or 3 for the third button.
1

Result

Returns OK on success.

Description

Moves the mouse cursor and performs a click.
If x and y are both zero, the mouse is not moved.
May fail due to limited permissions.

You can use RemoteControl.MouseX and RemoteControl.MouseY to find current mouse position.

See also


Registry.SetValue   -   RemoteControl.FindWindow

Feedback: Report problem or ask question.




Links
MBS Realbasic Plugins - Pfarrgemeinde Ministranten Nickenich