Sign in to follow this  
Followers 0
dwhiting

winwait for Balloon tips

8 posts in this topic

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

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

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

Share this post


Link to post
Share on other sites

can i see your full code?

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

Wait for the pixel colour to change?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

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