Arma 3 Scripting

Command in GUI Control - Menu, Broken Commands

menuShortcutText

Also available as Markdown and JSON, or read the original wiki page.

Warning

This command is listed as broken on the wiki.

Description

Returns a string containing shortcut text for menu item on the given path.

Syntax

Syntax 1

menuShortcutText [idc, path]

Parameters:

Returns: String

Syntax 2

control menuShortcutText path

Parameters:

Returns: String

Examples

Example 1

findDisplay 313 displayCtrl 120 menuShortcutText [1, 8]; // returns "#"

Problems

Warning

This command is currently broken in Arma 3 2.00. It only returns shortcuts which do not use a modifier key (Ctrl, Alt and Shift).

See also

menuShortcut · menuSetShortcut