Jump to content
Sign in to follow this  
Slippy

TrayTip(...) not working

Recommended Posts

Slippy

I am currently making a different script, and I tried to use TrayTip(...) only to find it didn't work. It did nothing. So, I created another .au3 file to test out the function.

Opt("TrayIconHide", 0)
Sleep(100)
TrayTip("ROSE Online", "Script is starting. Press ESC key to terminate the loop, ending the script.", 5, 1)

The icon appears (allbeit for a brief second) and then disappears. There is no traytip.

Any ideas? Or am I not utilizing the function correctly?

Share this post


Link to post
Share on other sites
Valik

Where exactly do you expect the TrayTip to stem from when you hide the icon?

Share this post


Link to post
Share on other sites
Slippy

1 is hide, 0 is show.

Edited by Slippy

Share this post


Link to post
Share on other sites
CyberSlug

Notice that the TrayTip documentation says that the "timeout" paramter is a rough estimate. AutoIt does not pause that amount of time, so if there are no other statements after TrayTip, the script exits....

Tray adding a Sleep(5000) at the very end of your script (like the example in the TrayTip docs).

Other notes: Make sure you are running Windows 2000/XP. Also, if you use a variable for the text parameter, make sure it it not an empty string:

TrayTip("This tray tip will never appear because the body is empty", "", 5)
Sleep(5000)
Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
Slippy

Notice that the TrayTip documentation says that the "timeout" paramter is a rough estimate.  AutoIt does not pause that amount of time, so if there are no other statements after TrayTip, the script exits....

Tray adding a Sleep(5000) at the very end of your script (like the example in the TrayTip docs).

<{POST_SNAPBACK}>

I did. Didn't work. So I added Sleep(50000) instead of 5000, still didn't work.

Share this post


Link to post
Share on other sites
Valik

1 is hide, 0 is show.

<{POST_SNAPBACK}>

Good point, I didn't expect a statement to be present when showing is the default behavior anyway.

Share this post


Link to post
Share on other sites
Slippy

I have SP1. I refuse to update to SP2 :idiot:

Yeah, Valik, I tried it without that and it didn't work so I figured why not add it in..

Share this post


Link to post
Share on other sites
Valik

You haven't used a registry tweak/third-party program to disable "Balloon Tips" have you?

Share this post


Link to post
Share on other sites
Slippy

Nope. This worked on my old PC, so hmm..

Share this post


Link to post
Share on other sites
Slippy

Yup. I added the value, and rebooted. Didn't work.

Share this post


Link to post
Share on other sites
this-is-me

I think you are missing something...

Opt("TrayIconHide", 0)
Sleep(100)
TrayTip("ROSE Online", "Script is starting. Press ESC key to terminate the loop, ending the script.", 5, 1)
Sleep(2000)
Edited by this-is-me

Who else would I be?

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  

×