Sign in to follow this  
Followers 0
coucou

What command for a special [Button]

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The window title is wrong ?

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

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

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0