Core Function WinMenuSelectItem
WinMenuSelectItem( <title>, <text>, <item>, <subitems> ... )
Contents |
Description
Invokes a menu item of a window.
Parameters
Title
The title of the window.
Text
Optional; The text of the window to read.
item
Text of Menu Item
items
Optional; Text of SubMenu item
Can have as many as you need
Return Value
Success: true
Failure: false
Remarks
You should note that underlined menu items actually contain a & character to indicate the underlining.
Thus, the menu item File would actually require the text "&File", and Convert would require "Con&vert" You can access menu items up to six levels deep; and the window can be inactive, minimized, and/or even hidden.
WinMenuSelectItem() will only work on standard menus. Unfortunately, many menus in use today are actually custom written or toolbars "pretending" to be menus. This is true for most Microsoft applications which is one reason I hate Office etc.
Example
WinMenuSelectItem("Untitled", "", "&File", "Save &As...");