RemoteControl.PressKeyLater
---------------------------

Presses a key after delay.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RemoteControl](component_RemoteControl.md) | [6.2](newinversion62.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "RemoteControl.PressKeyLater"; VirtualKey; ScanCode; Delay ) 

**MBS**( **"RemoteControl.PressKeyLater";** /\* Presses a key after delay. \*/  
**$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.e.g. "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.e.g. "a" \*/   
**$Delay**) /\* the delay in seconds.e.g. 2 \*/ 

### 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.  
Same as [RemoteControl.PressKey](RemoteControlPressKey.md), but with a delay.  
### Examples

Press enter in 2 seconds on Mac:

 MBS ( "RemoteControl.PressKeyLater"; 36; 13; 2)  
### See also

- [RemoteControl.PressCommandKey](RemoteControlPressCommandKey.md)
- [RemoteControl.PressKey](RemoteControlPressKey.md)
- [RemoteControl.PressOptionKey](RemoteControlPressOptionKey.md)
- [RemoteControl.PressShiftKey](RemoteControlPressShiftKey.md)

### Blog Entries

- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd March 2016 , last changed 24th February 2022

  
[RemoteControl.PressKey](RemoteControlPressKey.md) - [RemoteControl.PressOptionKey](RemoteControlPressOptionKey.md)

[HTML Version](RemoteControlPressKeyLater.shtml)