Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Menu item wont get checked.

$
0
0
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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>