Jump to content
Sign in to follow this  
dwhiting

winwait for Balloon tips

Recommended Posts

dwhiting

I am trying to use winwait to pause a task until a balloon tip pops up. I have used the following line to wait for the XP balloon tip that occurs when a network cable is unplugged. However, when I unplug my network cable and the balloon pops up it is not detected by the script as it does not proceed to the next line. I have no problem using winwait with regular windows but it just does not seem to work with a balloon tip.

Any help would be greatly appreciated.

winwait ("A network")

Share this post


Link to post
Share on other sites
qazwsx

you could try other identification methods that the title such as class to see if that works.

Share this post


Link to post
Share on other sites
dwhiting

I've tried that as well but still no detection.

Share this post


Link to post
Share on other sites
dwhiting

WinWait("[TITLE:A Network Cable; CLASS:tooltips_class32]")

MsgBox(4096, "LAN", "LAN disconnected")

Share this post


Link to post
Share on other sites
qazwsx

pixel color could give many false positives.

look up title match options in the help file. You don't have the right options for your code.

Edited by sccrstvn93

Share this post


Link to post
Share on other sites
dwhiting

when i use winexists with the same options and the balloon tip is open the program does see the window and continues. It just wont detect when it first opens.

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.