Jump to content

Monitor Listbox

Recommended Posts

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
    $n = GUICtrlGetState("[CLASS:Button; INSTANCE:1]")

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?



Link to comment
Share on other sites

Look up ControlCommand() with "IsEnabled" in the help file.

GuiCtrlGetState() is only for controls in a native AutoIt GUI.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...