menuShortcut: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 8: | Line 8: | ||
|descr= Returns shortcut related to menu entry on given path. Returns the shortcut in form of a bitflag. To get the shortcut text use [[menuShortcutText]] command. | |descr= Returns shortcut related to menu entry on given path. Returns the shortcut in form of a bitflag. To get the shortcut text use [[menuShortcutText]] command. | ||
|s1= | |s1= [[menuShortcut]] [idc, path] | ||
|p1= idc: [[Number]] | |p1= idc: [[Number]] | ||
Line 22: | Line 22: | ||
|p22= path: [[Array]] | |p22= path: [[Array]] | ||
|r2= | |r2= [[Number]] | ||
|x1= | |x1= <Code>[[findDisplay]] 313 [[displayCtrl]] 120 [[menuShortcut]] [0, 1];</code> | ||
|seealso= [[menuShortcutText]] [[menuSetURL]] | |seealso= [[menuShortcutText]] [[menuSetURL]] | ||
}} | }} |
Revision as of 22:21, 19 June 2021
Description
- Description:
- Returns shortcut related to menu entry on given path. Returns the shortcut in form of a bitflag. To get the shortcut text use menuShortcutText command.
- Groups:
- GUI Control - Menu
Syntax
- Syntax:
- menuShortcut [idc, path]
- Parameters:
- idc: Number
- path: Array
- Return Value:
- Number
Alternative Syntax
- Syntax:
- control menuShortcut path
- Parameters:
- control: Control
- path: Array
- Return Value:
- Number
Examples
- Example 1:
findDisplay 313 displayCtrl 120 menuShortcut [0, 1];
Additional Information
- See also:
- menuShortcutText menuSetURL
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note