techledr Posted May 29, 2007 Share Posted May 29, 2007 I am trying to test for a check box [checked] condition, and then conditionally either select or unselect the checkbox, as part of an automated installer utility (I did not write the GUI, it's a commercial progy). I have viewed the GUI using the ACTIVE WINDOW INFO utility, and cannot see can change in the GUI's status when either the box is checked or unchecked. Below is a pic of the panel I need to test on, and text of the GUI INFO utility. Im a newby at any GUI control, so any help would be greatly appreciated. Screen Shot: See attachment GUI INFO UTIL Data: expandcollapse popupPress CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Schedule Settings Class: #32770 Size: X: 671 Y: 4 W: 404 H: 448 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 47 Y: 55 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x000000 Dec: 0 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Schedule Settings &Enable (scheduled task runs at specified time) S&top the task if it runs for: 0 Spin1 hours 1 Spin2 minutes User Account Settings &User: &Domain: &Password: OK Cancel &Apply Help >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Schedule Schedule Tas&k: Monthly S&tart Time: 04:30 AM UT&C Time &Local Time Enable &randomization: 0 Spin1 hours 1 Spin2 minutes Run &missed task Delay miss&ed task by: 5 Spin1 minutes Schedule Task Monthly Da&y of the month: &Weekday of the month: 1 Spin1 First Sunday Se&lect Months... A&dvanced... Link to comment Share on other sites More sharing options...
Zedna Posted May 29, 2007 Share Posted May 29, 2007 ControlCommand() and "IsChecked" Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
techledr Posted May 29, 2007 Author Share Posted May 29, 2007 I you give me an example? I have not done any GUI control before, only WinWaitActive and Sends to screen so far. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I am trying to test for a check box [checked] condition, and then conditionally either select or unselect the checkbox, as part of an automated installer utility (I did not write the GUI, it's a commercial progy). I have viewed the GUI using the ACTIVE WINDOW INFO utility, and cannot see can change in the GUI's status when either the box is checked or unchecked. Below is a pic of the panel I need to test on, and text of the GUI INFO utility. Im a newby at any GUI control, so any help would be greatly appreciated. Screen Shot: See attachment GUI INFO UTIL Data: expandcollapse popupPress CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Schedule Settings Class: #32770 Size: X: 671 Y: 4 W: 404 H: 448 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 47 Y: 55 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x000000 Dec: 0 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Schedule Settings &Enable (scheduled task runs at specified time) S&top the task if it runs for: 0 Spin1 hours 1 Spin2 minutes User Account Settings &User: &Domain: &Password: OK Cancel &Apply Help >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Schedule Schedule Tas&k: Monthly S&tart Time: 04:30 AM UT&C Time &Local Time Enable &randomization: 0 Spin1 hours 1 Spin2 minutes Run &missed task Delay miss&ed task by: 5 Spin1 minutes Schedule Task Monthly Da&y of the month: &Weekday of the month: 1 Spin1 First Sunday Se&lect Months... A&dvanced... Link to comment Share on other sites More sharing options...
techledr Posted May 29, 2007 Author Share Posted May 29, 2007 Anyone got an example of how ControlCommand() and "IsChecked" could be used to test a GUI box if checked? [im clueless] Link to comment Share on other sites More sharing options...
techledr Posted May 29, 2007 Author Share Posted May 29, 2007 I was able to CHECK the CHECKBOX (Even if it was already checked) without issue using ControlCommand ("Schedule Settings", "", 1015, "Check", "") However, How do I used the "IS CHECKED" test feature? Link to comment Share on other sites More sharing options...
eltorro Posted June 1, 2007 Share Posted June 1, 2007 (edited) I was able to CHECK the CHECKBOX (Even if it was already checked) without issue using ControlCommand ("Schedule Settings", "", 1015, "Check", "") oÝ÷ Øz0z÷« ¬yÛaz«¨´@:®¢Û^²×ÞjÛ«{ú®¢×¢Ë"nºÚ"µÍÌÍÝÜ]HÛÛÛÛÛ[X[ ][ÝÔØÚY[HÙ][ÜÉ][ÝË ][ÝÉ][ÝËLMH ][ÝÒÐÚXÚÙY ][ÝË ][ÝÉ][ÝÊBYÝÜ[ÙÐÞ Ì ][ÝÐÚXÚØÞ ][ÝË ][ÝÕHÚXÚÙYÝ]HÎ][ÝÉ[Ê ÌÍÝÜ]HJJB[Y Edit: added msgbox Edited June 1, 2007 by eltorro Regards, [indent]ElTorro[/indent][font="Book"] Decide, Commit, Achieve[/font]_ConfigIO.au3Language Translation --uses Google(tm) MsgBox Move XML wrapper UDF XML2TreeView Zip functionality Split your GUI Save Print ScreenZipPluginEdit In Place listviewSome of my scripts on Google code Link to comment Share on other sites More sharing options...
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