Jump to content
Sign in to follow this  
tehon3299

Winwaitactive

Recommended Posts

tehon3299

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
Jos

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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Wallfire

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
tehon3299

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.