Jump to content

Menu item wont get checked.


Recommended Posts

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

Link to comment
Share on other sites

Hey,

It may not be a "clean" way to do it, but usually when I have trouble interacting with external applications controls, I simply use keyboard shortcuts.

Is your work app accepting them?

Maybe:

send("{!v}")
send("{DOWN}")
send("{SPACE}"}
Edited by Neutro
Link to comment
Share on other sites

This " auto scroll when run" setting value must be written somewhere on your computer. Maybe in an .ini file, maybe in the registry.

Did you try to find it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...