RemoteControl.PressDialogButton
-------------------------------

Presses a dialog button.

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

MBS( "RemoteControl.PressDialogButton"; ButtonName ) 

**MBS**( **"RemoteControl.PressDialogButton";** /\* Presses a dialog button. \*/  
**$ButtonName**) /\* The name of the button.e.g. "OK" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ButtonName | The name of the button. | "OK" |

### Result

Returns OK or error.

### Description

Presses a dialog button.  
The plugin takes the button name and waits in background.  
If a dialog shows up with the right button name, the plugin presses it.  
Please call [RemoteControl.PressDialogButton.Clear](RemoteControlPressDialogButtonClear.md) to stop this after you needed it.  
### Examples

Press OK on the custom dialog:

 Set Variable \[$r ; Value:MBS ( "RemoteControl.PressDialogButton"; "OK")\]  
Show Custom Dialog \["Hello"\]  
Set Variable \[$r ; Value:MBS ( "[RemoteControl.PressDialogButton.Clear](RemoteControlPressDialogButtonClear.md)")\]  
### See also

- [RemoteControl.PressDialogButton.Clear](RemoteControlPressDialogButtonClear.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)
- [MBS FileMaker Plugin, version 6.2pr1](https://www.mbsplugins.de/archive/2016-03-19/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th March 2016 , last changed 18th March 2016

  
[RemoteControl.PressControlKey](RemoteControlPressControlKey.md) - [RemoteControl.PressDialogButton.Clear](RemoteControlPressDialogButtonClear.md)

[HTML Version](RemoteControlPressDialogButton.shtml)