Jump to content

how to detect installation license agreement?

Recommended Posts

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
Link to post
Share on other sites
  • Moderators

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


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.

Link to post
Share on other sites

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

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...