RemoteControl.PressOptionKey
----------------------------

Presses option/alt key.

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

MBS( "RemoteControl.PressOptionKey"; down ) 

**MBS**( **"RemoteControl.PressOptionKey";** /\* Presses option/alt key. \*/  
**$down**) /\* Pass 1 to press key down or 0 to release it.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| down | Pass 1 to press key down or 0 to release it. | 1 |

### Result

Returns OK on success.

### Description

Presses option/alt key.  
Same as [RemoteControl.PressKey](RemoteControlPressKey.md) for pressing option or alt key.  
### Examples

Try shift key:

 Set Variable \[ $mod1 ; Value: Get(ActiveModifierKeys) \]x  
Set Variable \[ $r ; Value: MBS ( "RemoteControl.PressOptionKey"; 1 ) \]   
Set Variable \[ $mod2 ; Value: Get(ActiveModifierKeys) \]  
Set Variable \[ $r ; Value: MBS ( "RemoteControl.PressOptionKey"; 0 ) \]   
Set Variable \[ $mod3 ; Value: Get(ActiveModifierKeys) \]   
\# Mod2 is 8 for shift key   
Show Custom Dialog \[ "Modifier Keys" ; $mod1 &amp; ¶ &amp; $mod2 &amp; ¶ &amp; $mod3 \]  
### See also

- [RemoteControl.PressCommandKey](RemoteControlPressCommandKey.md)
- [RemoteControl.PressControlKey](RemoteControlPressControlKey.md)
- [RemoteControl.PressKey](RemoteControlPressKey.md)
- [RemoteControl.PressKeyLater](RemoteControlPressKeyLater.md)
- [RemoteControl.PressShiftKey](RemoteControlPressShiftKey.md)

This function checks for a license.

Created 18th August 2014 , last changed 28th March 2023

  
[RemoteControl.PressKeyLater](RemoteControlPressKeyLater.md) - [RemoteControl.PressShiftKey](RemoteControlPressShiftKey.md)

[HTML Version](RemoteControlPressOptionKey.shtml)