{"name":"menuShortcutText","operator":null,"title":"menuShortcutText","type":"command","url":"https://community.bistudio.com/wiki/menuShortcutText","revid":378343,"updated":"2026-04-02T16:31:24Z","groups":["GUI Control - Menu","Broken Commands"],"status":"broken","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns a string containing shortcut text for menu item on the given path.","syntaxes":[{"syntax":"menuShortcutText [idc, path]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"idc: Number"},{"name":"path","type":"Tree View Path","optional":false,"default":null,"description":null,"types":["Tree View Path"],"since":null,"text":"path: Tree View Path"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, path]","types":["Array"]}},{"syntax":"control menuShortcutText path","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"path","type":"Tree View Path","optional":false,"default":null,"description":null,"types":["Tree View Path"],"since":null,"text":"path: Tree View Path"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"path","types":["Tree View Path"]}}],"examples":[{"text":"```sqf\nfindDisplay 313 displayCtrl 120 menuShortcutText [1, 8]; // returns \"#\"\n```","code":["findDisplay 313 displayCtrl 120 menuShortcutText [1, 8]; // returns \"#\""]}],"multiplayer":null,"problems":"> [!WARNING]\n> This command is currently broken in Arma 3 2.00. It only returns shortcuts which do not use a modifier key (<kbd>Ctrl</kbd>, <kbd>Alt</kbd> and <kbd>Shift</kbd>).","aliases":[],"see_also":["menuShortcut","menuSetShortcut"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Broken Commands","Command Group: GUI Control - Menu","Introduced with Arma 3 version 1.56","Scripting Commands"]}