Sign in to follow this  
Followers 0
fbnewtz

Monitor Listbox

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

You rock! Thanks dude. That set me right up!

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  
Followers 0