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.PressKey

Presses a key.

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

MBS( "RemoteControl.PressKey"; VirtualKey; ScanCode { ; down } )

Parameters

Parameter Description Example value
VirtualKey The platform dependent virtual key code. Pass a number for a virtual key code or pass a string to let the plugin try to lookup the virtual key code. "a"
ScanCode The platform dependent scan code. Pass a number for a scan code or pass a string to let the plugin try to lookup the virtual key code. If this parameter is missing, the virtual key code is used to lookup the scan code. "a"
down Optional
Whether to press key down or release it. If parameter is missing the plugin will do both.

Result

Returns OK on success.

Description

Presses a key.
Codes are platform dependent. As a help we allow you to pass the character for the key as text and the plugin looks up virtual key code and scan code. But this lookup can fail. So please try all keys for your keyboard.

Examples

Press a key

MBS( "RemoteControl.PressKey"; "a")

Press return key on Mac:

MBS( "RemoteControl.PressKey"; 36; 13)

Press cursor right key on Mac:

MBS( "RemoteControl.PressKey"; 124; 0 )

See also


RemoteControl.PressDialogButton.Clear   -   RemoteControl.PressKeyLater

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde St. Arnulf Nickenich