Jump to content

systreeview32 radio button


Recommended Posts

I thought I this would work, but it doesn't. I also tried to check the radio, but that doesn't work. I am trying to select the radio under control panel called "don't display this item". I am not sure why it doesn't work. Thanks in advance.

WinActivate("[CLASS:Shell_TrayWnd]")
 Send("!{ENTER}")
 WinWait("Taskbar and Start Menu Properties")
 WinActivate("Taskbar and Start Menu Properties")
 ControlCommand("Taskbar and Start Menu Properties", "", "[CLASS:SysTabControl32; INSTANCE:1]", "TabRight", "")
 ControlClick("Taskbar and Start Menu Properties", "", 1131, "primary")
 WinWait("Customize Start Menu")
 WinActivate("Customize Start Menu")
 ControlCommand("Customize Start Menu", "", "[CLASS:SysTabControl32; INSTANCE:1]", "TabRight", "")
 Sleep(500)
 ControlTreeView("Customize Start Menu", "", "[CLASS:SysTreeView32; INSTANCE:1]", "Select", "#0|#2")
Edited by dantay9
Link to comment
Share on other sites

Try ControlTreeView() with Check option

Also look at _GUICtrlTreeView_SetChecked()

Search forum there are many scripts using that.

EDIT:

Here is post about that problem

some treeview with checkboxes are resistent to standard functions

so you must use workarounds

use _GUICtrlTreeView_GetImageIndex() instead of _GUICtrlTreeView_GetChecked()

use _GUICtrlTreeView_SetImageIndex() instead of _GUICtrlTreeView_SetChecked()

or use _GUICtrlTreeView_ClickItem() instead of _GUICtrlTreeView_SetChecked()

http://www.autoitscript.com/forum/index.ph...st&p=439723

Edited by Zedna
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...