Jump to content

First Script - ControlClick Assistance Not Clicking


allanc
 Share

Recommended Posts

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 Code

run ("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 Toolbar

Class: #32770

Position: 512, 120

Size: 444, 373

Style: 0x94C800C4

ExStyle: 0x00010101

Handle: 0x00360228

>>>> Control <<<<

Class: Button

Instance: 2

ClassnameNN: Button2

Advanced (Class): [CLASS:Button; INSTANCE:2]

ID: 512

Text: &Do not install the Google Toolbar.

Position: 33, 211

Size: 182, 16

ControlClick Coords: 8, 7

Style: 0x50010009

ExStyle: 0x00000004

Handle: 0x001401A4

>>>> Mouse <<<<

Position: 556, 367

Cursor ID: 2

Color: 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 Use

Privacy Policy

Continue

>>>> Hidden Text <<<<

Link to comment
Share on other sites

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

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...