Hi,
Following my question >here, how do I select a menu item according to its text?
I tried the following (please see also comments embedded):
If WinExists("[CLASS:#32768") Then
$hWnd = WinGetHandle("[CLASS:#32768") ;ContextMenu
$hMenu = _SendMessage($hWnd, $MN_GETHMENU, 0, 0)
If _GUICtrlMenu_IsMenu($hMenu) Then
ConsoleWrite("$menuItemText = " & $menuItemText & @CRLF) ;That is the text I am searching in the menu..
$menuItemsCount = _GUICtrlMenu_GetItemCount($