menuSetShortcut: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(page creation WIP, will be completely filled once command is available ingame for testing)
 
m (Some wiki formatting)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


|arma3Dev |= Game
|game1= arma3
|version1= 2.02


|2.01|Game Version=
|gr1= GUI Control - Menu


|gr1= GUI Control - Menu |GROUP1=
|descr= Sets shortcut of given menu strip entry.


| Sets shortcut of given menu strip entry. {{wip}} |DESCRIPTION=
|s1= [[menuSetShortcut]] [idc, path, shortcut]


| [[menuSetShortcut]] [idc, path, shortcut] |SYNTAX=
|p1= idc: [[Number]]


|p1= idc: [[Number]] |PARAMETER1=
|p2= path: [[Array]]


|p2= path: [[Array]] |PARAMETER2=
|p3= shortcut: [[Number]]


|p3= shortcut: [[String]] |PARAMETER3=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|s2= control [[menuSetShortcut]] [path, shortcut]


|p21= control: [[Control]]


|s2= control [[menuSetShortcut]] [path, shortcut] |ALTSYNTAX1=
|p22= path: [[Array]]


|p21= control: [[Control]] |PARAMETER21=
|p23= shortcut: [[Number]]


|p22= path: [[Array]] |PARAMETER22=
|r2= [[Nothing]]


|p23= shortcut: [[String]] |PARAMETER23=
|x1= <sqf>_ctrlMenuStrip menuSetShortcut [[0,0], 2048 + 0x16]; // ALT + U</sqf>


|r2= [[Nothing]] |ALTRETURNVALUE1=
|seealso= [[menuShortcut]] [[menuShortcutText]]
 
|x1=  <Code></code>|EXAMPLE1=
 
|[[menuShortcut]] |SEEALSO=
}}
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:05, 5 May 2022

Hover & click on the images for description

Description

Description:
Sets shortcut of given menu strip entry.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuSetShortcut [idc, path, shortcut]
Parameters:
idc: Number
path: Array
shortcut: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
control menuSetShortcut [path, shortcut]
Parameters:
control: Control
path: Array
shortcut: Number
Return Value:
Nothing

Examples

Example 1:
_ctrlMenuStrip menuSetShortcut [[0,0], 2048 + 0x16]; // ALT + U

Additional Information

See also:
menuShortcut menuShortcutText

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