allanc Posted October 26, 2009 Share Posted October 26, 2009 This is my first script and I am trying to use the ControlClick to click on the 'Do not install Google Toolbar' during this WinZip 14.0 setup test.I am testing this in a XP PRO sp3 machine on a Vista Home Premium host.Thank you in advance for all assistance.Script Coderun ("winzip140.exe")WinWaitActive("WinZip® 14.0 Setup","&Setup")send("!s")ControlClick("WinZip Setup - Google Toolbar","You can also choose to install the optional and free Google Toolbar from Google",512,"left")send("{ENTER}")AutoIt Window Info>>>> Window <<<<Title: WinZip Setup - Google ToolbarClass: #32770Position: 512, 120Size: 444, 373Style: 0x94C800C4ExStyle: 0x00010101Handle: 0x00360228>>>> Control <<<<Class: ButtonInstance: 2ClassnameNN: Button2Advanced (Class): [CLASS:Button; INSTANCE:2]ID: 512Text: &Do not install the Google Toolbar.Position: 33, 211Size: 182, 16ControlClick Coords: 8, 7Style: 0x50010009ExStyle: 0x00000004Handle: 0x001401A4>>>> Mouse <<<<Position: 556, 367Cursor ID: 2Color: 0x259520>>>> StatusBar <<<<>>>> Visible Text <<<<You can also choose to install the optional and free Google Toolbar from Google, Inc.The Google Toolbar allows you to:* Search the Web from any site.* Eliminate annoying pop-up ads.* Fill out Web forms instantly with AutoFill.Choose whether you want the free Google Toolbar installed, then click Continue.&Install the Google Toolbar for Internet Explorer.&Do not install the Google Toolbar.You can remove the Google Toolbar at any time.By installing the Google Toolbar, you agree to abide by Google's Terms of Use and Privacy Policy.Terms of UsePrivacy PolicyContinue>>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 26, 2009 Share Posted October 26, 2009 Put in another WinWait(). Once you send the Alt-s, you should wait again for the new window. It probably doesn't exist yet when your ControlClick() happens. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
allanc Posted October 26, 2009 Author Share Posted October 26, 2009 Put in another WinWait(). Once you send the Alt-s, you should wait again for the new window. It probably doesn't exist yet when your ControlClick() happens. That fixed it. Thanks. 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