dantay9 Posted April 11, 2009 Posted April 11, 2009 (edited) 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 April 11, 2009 by dantay9
dantay9 Posted April 11, 2009 Author Posted April 11, 2009 Anyone know? I know it used to be impossible with previous versions, but is it possible now?
Zedna Posted April 11, 2009 Posted April 11, 2009 (edited) Try ControlTreeView() with Check optionAlso look at _GUICtrlTreeView_SetChecked()Search forum there are many scripts using that.EDIT:Here is post about that problemsome treeview with checkboxes are resistent to standard functionsso you must use workaroundsuse _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 April 11, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
dantay9 Posted April 11, 2009 Author Posted April 11, 2009 I tried controltreeview and it didn't work. Thanks for the link to that other topic. I'll get right on that.
dantay9 Posted April 11, 2009 Author Posted April 11, 2009 This is perfect. Thanks for the help. I would have never found this.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now