Jump to content
Sign in to follow this  
proyb2

how to detect installation license agreement?

Recommended Posts

proyb2

using HP printer setup installation, it have the same titles throughout all installation steps but only up to license agreement section, there is no way to detect using Wingettext() and Winwaitactive() where it has only RichEdit property shown license in text and 2 buttons of &Agree and &Decline...tired to work with button text detection would not be possible for me too...

installation on win 9x would be very slow than win2k and latest...so delay timing and loop was not an option for me...

using mouse movement will work better but how do i mange to detect the license section?

Edited by proyb2

Share this post


Link to post
Share on other sites
SmOke_N

As Nuffilein said... Using AutoInfo Tool, do you have a "unique Class" for that window?

If so you could do something like: Paint as an example...

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: untitled - Paint

Class: MSPaintApp

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 284 W: 267 H: 49

Control ID: 59422

ClassNameNN: AfxControlBar42u2

WinWaitActive("classname=MSPaintApp")

ControlClick("classname=MSPaintApp", "text of button", "AfxControlBar42u2", "left", 1); notice "left" and 1 are default

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
proyb2

info window show nothing except there are only 2 buttons which are visible text

i hope there are some function to get text on RichEdit property which contain license agreement

Edited by proyb2

Share this post


Link to post
Share on other sites
BigDod

info window show nothing except there are only 2 buttons which are visible text

i hope there are some function to get text on RichEdit property which contain license agreement

Just a shot in the dark but how about using

Opt("WinSearchChildren", 1)

Then search for text on button.

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  

×