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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

RemoteControl.PressOptionKey

Presses option/alt key.

Component Version macOS Windows Linux Server iOS SDK
RemoteControl 2.8 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "RemoteControl.PressOptionKey"; down )   More

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 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 & ¶ & $mod2 & ¶ & $mod3 ]

See also

This function checks for a license.

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


RemoteControl.PressKeyLater - RemoteControl.PressShiftKey

💬 Ask a question or report a problem