Jump to content

What command for a special [Button]


coucou
 Share

Recommended Posts

Hi,

I build an automatic install file. When i launch it, the install is closed (cancelled) after the second window.

Here the .au3 file command

Run("wwisetup1_747628.exe")
WinWaitActive("Window Washer Setup")
Send("!n")

;Accept License agreement
WinWaitActive("Installation de Window Washer", "I Agree")
ControlClick("Installation de Window Washer", "I Agree", "TButton4")

In fact, when the [i Agree] button is selected its outline become orange (color) and when is not selected the outline are white (see the image here bellow).

Ater looking closely the AutoIt Window Info, I noticed that the [i Agree] button is corresponding to Exit (see the image here bellow).

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:       X
Control ID: 67544
ClassNameNN:    TButton4
Text:       &Exit

Does anyone could help how do i get ride from this.

Regards

coucou

Posted Image

Link to comment
Share on other sites

  • Developers

The window title is wrong ?

WinWait("Window Washer Setup", "I Agree")

ControlClick("Window Washer Setup", "I Agree", "TButton4")

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

TNX JdeB for reply,

The window title is wrong ?

I don't think so!!!

If you look closely to AutoIt Window Info >>>Visible Window Text<<< you'll notice 3 tetxs: "I Agree"; "&Cancel"; "PLEASE READ THIS AGReEMENT CAREFUlLY". Then, anyone of those text should be correct.

Anyway, I've tried this

WinWait("Window Washer Setup", "PLEASE READ THIS AGReEMENT CAREFUlLY")
ControlClick("Window Washer Setup", "PLEASE READ THIS AGReEMENT CAREFUlLY", "TButton4")
and this
WinWait("Window Washer Setup")
ControlClick("Window Washer Setup", "", "TButton4")
without success

Any advise/suggestion will be wellcome

Regards

coucou

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