Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

RemoteControl.PressKeyLater

Presses a key after delay.

Component Version macOS Windows Linux Server iOS SDK
RemoteControl 6.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "RemoteControl.PressKeyLater"; VirtualKey; ScanCode; Delay )   More

Parameters

Parameter Description Example
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"
Delay the delay in seconds. 2

Result

Returns OK or error.

Description

Presses a key after delay.
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 enter in 2 seconds on Mac:

MBS( "RemoteControl.PressKeyLater"; 36; 13; 2)

See also

Blog Entries

Created 22nd March 2016, last changed 22nd March 2016


RemoteControl.PressKey - RemoteControl.PressOptionKey

Feedback: Report problem or ask question.