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.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Checks if a menubar item is checked.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menubar | 6.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
Path | The ID or path to the menu entry. Use Menubar.ListMenuCommands to find out the IDs and names. |
49297 |
Returns 0, 1 or error.
Checks if debugger is visible:
MBS( "Menubar.IsMenuCommandChecked"; 49260)
Show debugger from within a script:
#The menu command as we got it from Menubar.ListMenuCommands
Set Variable [$DebuggerMenuID; Value:49260]
If [MBS( "Menubar.HasMenuCommand"; $DebuggerMenuID ) = 1]
If [MBS( "Menubar.IsMenuCommandChecked"; $DebuggerMenuID ) = 1]
#debugger already visible
Else
#show debugger
Set Variable [$r; Value:MBS( "Menubar.RunMenuCommand"; $DebuggerMenuID )]
Pause/Resume Script [Duration (seconds): ,1]
End If
Else
Show Custom Dialog ["Debugger missing in Menubar?"]
End If
#now follows your script that should always run in debugger
This function checks for a license.
Created 17th June 2016, last changed 17th June 2016