PerryRaptor 1 Posted June 5, 2005 (edited) I need help to uncheck a box and press the Finish Button. *Edited* Edited June 5, 2005 by PerryRaptor Share this post Link to post Share on other sites
PerryRaptor 1 Posted June 5, 2005 Still, I have not found a solution to un-check the "launch the application" feature in the install. See attached file. I've tried ControlClick(), ControlCommand(), and ControlDisable()...Nothing works! Here is the Au3Info for the control... expandcollapse popupPress CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: ICS Viewer 6.0 Setup Class: #32770 Size: X: 148 Y: 111 W: 504 H: 379 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 347 Y: 289 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xFFFFFF Dec: 16777215 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 176 Y: 150 W: 297 H: 26 Control ID: 502 ClassNameNN: Button2 Text: Launch the application Style: 0x50010003 ExStyle: 0x00000004 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< View the readme file Launch the application < &Back Finish Cancel Installation complete. Setup has successfully installed the ICS Viewer 6.0. InstallShield Wizard Complete >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Share this post Link to post Share on other sites
Valuater 129 Posted June 5, 2005 You should be able to Send("{TAB}") as many times as needed to get to the location then send Mouseclick hope it helps Share this post Link to post Share on other sites
PerryRaptor 1 Posted June 6, 2005 Send("{TAB}") nor MouseClick() work either. Share this post Link to post Share on other sites
gammasts 0 Posted June 6, 2005 ControlCommand("ICS Viewer 6.0 Setup", "", "Button2", "uncheck") That should do it. To check a box, use check instead of uncheck Share this post Link to post Share on other sites
PerryRaptor 1 Posted June 6, 2005 ControlCommand("ICS Viewer 6.0 Setup", " ", "Button2", "uncheck") was my first choice and no, it didn't work. I think it has something to do with *.exe file changes during the install; however, the Windows Title is the same and so does the Class#. I'm thinking about trying to detect the *.exe file change and reset the focus. Share this post Link to post Share on other sites
Valuater 129 Posted June 6, 2005 (edited) Send("{TAB}") nor MouseClick() work either.<{POST_SNAPBACK}>I had a similar problem and had really work HARD!!!!! to get around it, so maybe this can help youfirst you need the actual control ID information from AU3info.exe (really great)then try to set focus on the GUI with ******************* While 1 $func1 = ControlCommand("ICS Viewer 6.0 Setup", "", 1, "IsEnabled", "") If $func1 = 1 Then ExitLoop If $func1 = 0 Then Sleep(200) EndIfWEndand or ****************************ControlFocus("ICS Viewer 6.0 Setup", "", 1)When i was able to get the focus i used this to find caret positionfor $x= 1 to 3 Send("{TAB}") Nextand or ***********************for $x= 1 to 3 Send("{DOWN}") ;>>>>> this worked with checkboxes NextWith these i found the location but.... it still would not accept an "ENTER" command (for you maybe uncheck or space or??)so i used this to find the caret location $a = _CaretPos() If Not @error Then Sleep(200) MouseClick("left", $a[0], $a[1]) ;>>>> click the position EndIfwith the funtion (from help file) of ***************; More reliable method to get caret coords in MDI text editors.Func _CaretPos() Local $x_adjust = 25 ; 5 Local $y_adjust = 25 ;40 Opt("CaretCoordMode", 0) ;relative mode Local $c = WinGetCaretPos() ;relative caret coords Local $w = WinGetPos("") ;window's coords Local $f = ControlGetFocus("","") ;text region "handle" Local $e = ControlGetPos("", "", $f) ;text region coords Local $t[2] If IsArray($c) and IsArray($w) and IsArray($e) Then $t[0] = $c[0] + $w[0] + $e[0] + $x_adjust $t[1] = $c[1] + $w[1] + $e[1] + $y_adjust Return $t ;absolute screen coords of caret cursor Else SetError(1) EndIfEndFuncThat was alot of work.... but there was no other wayHope it helps you too!good luck Edited June 6, 2005 by Valuater Share this post Link to post Share on other sites
PerryRaptor 1 Posted June 7, 2005 Still working this issue...AU3Info show the checkbox as a button; however, sending a click to it doesn't make it uncheck. I noticed that there is a Style = 0x50010003 and an ExStyle = 0x00000004. I'm wondering if these are the reason. I can click on the checkbox or the text during a normal install as well as the Finish button...For some reason unknown to me I cannot complete these actions via script. It's late, I'll try your ideas in the morning. Share this post Link to post Share on other sites