ClickMenuButton
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Simulates the user clicking (one or more times) on the specified UI button.
- This function is intended for UI buttons performing a particular, hardcoded menu function (Accept, Cancel, Select, Switch, etc.). For miscellaneous UI buttons, see ClickMenuTile.
Syntax
(successful:0/1) ClickMenuButton componentPath:string clickTimes:int
Example
ClickMenuButton "StartMenu\NOGLOW_BRANCH\settings_container" 1
ClickMenuButton "RecipeMenu#2" 1
The 2nd example demonstrates an alternate (and the preferable) method for specifying the component path. A # symbol immediately following the menu name, then followed by a number matching the <id> trait of the component.
In this case, "RecipeMenu#2" is equivalent to "RecipeMenu\NOGLOW_BRANCH\RM_ItemsRect\RM_Items_RightFilterArrow"
Notes
- The UI component must be click-able, and have an <id> trait.