Jump to content

Recommended Posts

Posted

I am trying to automate the installation of a device driver. During one stage of the installation the Next button is disabled until the files are copied and the drivers loaded. But a listbox in the driver installation application is populated for each step. I have tried to write a loop to monitor the Next button but that is not working. So I would like to monitor the list box possibly, but I don't know if that is possible either.

Here is the code I have to monitor the Next button:

WinWaitActive("Intel(R) Graphics Media Accelerator Driver","Setup Progress")
$n = GUICtrlGetState("[CLASS:Button; INSTANCE:1]")
While $n = -1
    sleep(10)
    $n = GUICtrlGetState("[CLASS:Button; INSTANCE:1]")
WEnd
Send("!n")

My program just gets stuck in the loop.

Any ideas on what I could do to either monitor the list box in the application or properly check for the next button to be enabled?

Thanks!

Fred

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