Platforms to show: All Mac Windows Linux Cross-Platform
Back to PresskeyMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
PresskeyMBS.mouseclick(down as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Clicks the mouse at current position.
Left button is used.
If you forget the mouseup you may loose control about a Mac with Mac OS X, but if you have enabled external terminal login you can login via SSH and quit Xojo from outside.
The Mac version sets the lasterror property.
See also:
PresskeyMBS.MouseClick(down as boolean, rightdown as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | 8.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Same as MouseClick, but with an additional rightdown parameter.
See also:
PresskeyMBS.MouseMove(globalx as Integer,globaly as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Moves the mouse on screen.
The destination must be specified in global screen coordinates.
Requires Mac OS 8.5 or newer for Mac OS Classic.
PresskeyMBS.MouseMoveClick(globalx as Integer,globaly as Integer,down as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | 2.8 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Moves the mouse on screen and clicks.
The destination must be specified in global screen coordinates.
Requires Mac OS 8.5 or newer for Mac OS Classic.
The Mac version sets the lasterror property.
Mac OS X only:
Based on the values entered, the appropriate mouse-down, mouse-up, mouse-move, or mouse-drag events are generated, by comparing the new state with the current state.
See also:
Some examples using this method:
PresskeyMBS.MouseMoveClick(globalx as Integer,globaly as Integer,down as boolean, rightdown as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | 8.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Same as MouseMoveClick, but with an additional rightdown parameter.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Simulates a keypress and handles the Settings for Shift, Control, Command and Option key.
Command shows no reaction in my tests for Mac OS Classic
On Windows, if you set virtualcode=-1 this method will set it to the code matching the charcode property.
The Mac version sets the lasterror property.
PresskeyMBS.pressraw(down as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Remote Control | MBS ComputerControl Plugin | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Simulates a keypress and doesn't handle the Settings for Shift, Control, Command and Option key.
On Windows, if you set virtualcode=-1 this method will set it to the code matching the charcode property.
The Mac version sets the lasterror property.
Some examples using this method:
The items on this page are in the following plugins: MBS ComputerControl Plugin.