Sign in to follow this  
Followers 0
tehon3299

Winwaitactive

4 posts in this topic

Hey guys -

I am trying to uninstall a program that uses MSI and I am using the WinWaitActive function to wait for the window that asks to reboot so I can say No, Dont Reboot. But when the MSI loads to uninstall the program, that window has the same name as the window that asks to reboot the computer. Is there anyway around this??

Thanks!

Share this post


Link to post
Share on other sites



Isn't there some unique text on the reboot window ... something like the word "Reboot" ?

You can test for that in the 2nd parameter....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

or you can use a risker method and have AutoIt select "No,Dont Reboot" with a mouse click.

if the window pops up in the same place everytime you could have AutoIt wait untill the pixels change color where the window pops up and then click "No"

but i wouldnt suggest this, this is only if you cant use WinWaitActive function.


:cheer: awww...wheres the chick?

Share this post


Link to post
Share on other sites

DOH! Thanks JdeB! What is really funny, is I am using the WinWaitActive function someplace else in the code to do the same thing and I did it right!...lol...thanks again!

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