Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- RemoteControl.PressCommandKey
- RemoteControl.PressControlKey
- RemoteControl.PressKey
- RemoteControl.PressKeyLater
- RemoteControl.PressShiftKey
This function checks for a license.
Created 18th August 2014, last changed 28th March 2023