Jump to content
Sign in to follow this  

What command for a special [Button]

Recommended Posts



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

Here the .au3 file command

WinWaitActive("Window Washer Setup")

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



Posted Image

Share this post

Link to post
Share on other sites

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



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