Slippy Posted January 2, 2005 Share Posted January 2, 2005 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? Link to comment Share on other sites More sharing options...
Valik Posted January 2, 2005 Share Posted January 2, 2005 Where exactly do you expect the TrayTip to stem from when you hide the icon? Link to comment Share on other sites More sharing options...
Slippy Posted January 2, 2005 Author Share Posted January 2, 2005 (edited) 1 is hide, 0 is show. Edited January 2, 2005 by Slippy Link to comment Share on other sites More sharing options...
CyberSlug Posted January 2, 2005 Share Posted January 2, 2005 (edited) 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 January 2, 2005 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! Link to comment Share on other sites More sharing options...
Slippy Posted January 2, 2005 Author Share Posted January 2, 2005 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. Link to comment Share on other sites More sharing options...
CyberSlug Posted January 2, 2005 Share Posted January 2, 2005 Ah, it might be that problem caused by Windows XP Service Pack 2.See my post at http://www.autoitscript.com/forum/index.ph...wtopic=5506&hl= Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted January 2, 2005 Share Posted January 2, 2005 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. Link to comment Share on other sites More sharing options...
Slippy Posted January 2, 2005 Author Share Posted January 2, 2005 I have SP1. I refuse to update to SP2 Yeah, Valik, I tried it without that and it didn't work so I figured why not add it in.. Link to comment Share on other sites More sharing options...
Valik Posted January 2, 2005 Share Posted January 2, 2005 You haven't used a registry tweak/third-party program to disable "Balloon Tips" have you? Link to comment Share on other sites More sharing options...
Slippy Posted January 2, 2005 Author Share Posted January 2, 2005 Nope. This worked on my old PC, so hmm.. Link to comment Share on other sites More sharing options...
CyberSlug Posted January 2, 2005 Share Posted January 2, 2005 Did you check http://www.winguides.com/registry/display.php/997/ ? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Slippy Posted January 2, 2005 Author Share Posted January 2, 2005 Yup. I added the value, and rebooted. Didn't work. Link to comment Share on other sites More sharing options...
this-is-me Posted January 4, 2005 Share Posted January 4, 2005 (edited) 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 January 4, 2005 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now