Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RemoteControl.ClickMouse
Moves the mouse cursor and performs a click.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RemoteControl | 2.8 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "RemoteControl.ClickMouse"; X; Y { ; down; ButtonIndex } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
X | New x position of the mouse. | 500 | |
Y | New y position of the mouse. | 500 | |
down | 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 | Optional |
ButtonIndex | Optional, pass 2 for the right mouse instead of left mouse. Or 3 for the third button. | 1 | Optional |
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.
Pressing only mouse down in a script can lock FileMaker as no further script line will run before the mouse is up again!
See also
- Plugin.DisableFunction
- Plugin.GetFunctionParameters
- Plugin.GetFunctionPlatforms
- Plugin.LimitFunction
- Plugin.LockFunction
- Plugin.UnlockFunction
- RemoteControl.MouseX
- RemoteControl.MouseY
- RemoteControl.MoveMouse
Release notes
- Version 7.3
- Fixed RemoteControl.ClickMouse to not move mouse on Mac for 0/0 coordinate.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 20th November 2020
