Invokes a menu item of a window.
WinMenuSelectItem ( "title", "text", "item" [, "item" [, "item" [, "item" [, "item" [, "item" [, "item"]]]]]] )
| title | The title of the window to read. See Title special definition. |
| text | The text of the window to read. |
| item | Text of Menu Item |
| item | [optional] Text of SubMenu item |
| item | [optional] Text of SubMenu item |
| item | [optional] Text of SubMenu item |
| item | [optional] Text of SubMenu item |
| item | [optional] Text of SubMenu item |
| item | [optional] Text of SubMenu item |
| Success: | Returns 1. |
| Failure: | Returns 0 if the menu could not be found. |
; This will select File and then Page Setup in notepad
WinMenuSelectItem("[CLASS:Notepad]", "", "&File", "Page Set&up...")