Jump to content

Automate an installation routine


Recommended Posts

Hello,

i would like to wait for the state "enable" of a control (button). This button-control is part of an installation routine so it is not being created

by an autoit-script at once. If the user runs the installation routine the window, on which the button-control is set, is already active, but the control is disabled for a few seconds. After this time, you can get to the next window, because the button-control has been enabled.

So my question is... how can i catch the state of the button-control. I used the "GUICtrlGetState" function like this:

$state = GUICtrlGetState("17501")

While $state == $GUI_DISABLE
  ...
WEnd

but the function return the value -1. Can you give me some examples or inspirations to solve this problem?

Thank you very much...

Link to comment
Share on other sites

What is the program you are trying to install?

It's a custom-made installation routine that you cannot download from the internet.

So if I wrote the installtion routine with the Autoit own controls, i just beeing able to use the

GUIXXX functions. Is that correct ?

In my case I only have informations from the Autoit Window Info tool. With this I won the

button-control-ID. It's 17501

This button-control is disabled because in the back the installtion routine just make some

things that doesn't matter. So this procedure takes a few seconds. After that the button gets

enabled so you can go on with the rest of the installation.

My question is (instead of taking the Sleep-function) how I can check the controls state?

Because this is the only attribute I can check on!! Or not?

Can anybody help me? (maybe with an example?)

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