my app at work has a menu of File, edit, view ....
i try to go to view, and enable on an item " auto scroll when run" ..but i wont do anything....I test the func on notepad it works...
is there any way around to check on the submenu's item ? it can read the text but it cant check on the item.... at work it wont let me click on the autoit button to post code.
$hWnd = WinGetHandle($title1)
$hMain = _GUICtrlMenu_GetMenu($hWnd)
$x = _GUICtrlMenu_FindItem($hMain, "View")
$hView = _GUICtrlMenu_GetItemSubMenu($hMain, $x)
$t = _GUICtrlMenu_GetItemText($hView, 9)
ConsoleWrite("status: " &_GUICtrlMenu_GetItemChecked($hView, 9) &@crlf) ;status shows 0
_GUICtrlMenu_SetItemChecked($hView, 9)
ConsoleWrite("status: " &_GUICtrlMenu_GetItemChecked($hView, 9) &@crlf) ; status shows 1 but the item is not checked
i try to go to view, and enable on an item " auto scroll when run" ..but i wont do anything....I test the func on notepad it works...
is there any way around to check on the submenu's item ? it can read the text but it cant check on the item.... at work it wont let me click on the autoit button to post code.
$hWnd = WinGetHandle($title1)
$hMain = _GUICtrlMenu_GetMenu($hWnd)
$x = _GUICtrlMenu_FindItem($hMain, "View")
$hView = _GUICtrlMenu_GetItemSubMenu($hMain, $x)
$t = _GUICtrlMenu_GetItemText($hView, 9)
ConsoleWrite("status: " &_GUICtrlMenu_GetItemChecked($hView, 9) &@crlf) ;status shows 0
_GUICtrlMenu_SetItemChecked($hView, 9)
ConsoleWrite("status: " &_GUICtrlMenu_GetItemChecked($hView, 9) &@crlf) ; status shows 1 but the item is not checked