BlueScreen Posted December 7, 2003 Share Posted December 7, 2003 Hi, I was wondering if there is a way to run TrayTip command "in the background" e.g. TrayTip ("Status","NotePad is being opened",15,1) Run("Notepad.exe", "", @SW_MAXIMIZE) Although the timeout of the TrayTip is 15 seconds, the user will not see the TrayTip. However, I don't want to delay the opening of notepad. Is there a solution? Link to comment Share on other sites More sharing options...
CyberSlug Posted December 7, 2003 Share Posted December 7, 2003 (edited) See if this is acceptable: Run("Notepad.exe", "", @SW_MAXIMIZE) TrayTip ("Status","NotePad is being opened",15,1) Sleep(3000) Exit Edited December 7, 2003 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...
BlueScreen Posted December 8, 2003 Author Share Posted December 8, 2003 Unfortunately, No. I would not like the code to stop running while the traytip message appear. Is there another solution? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 8, 2003 Developers Share Posted December 8, 2003 (edited) Would this work ? AutoItSetOption("WinTitleMatchMode", 2) Run("Notepad.exe", "", @SW_MAXIMIZE) TrayTip ("Status","NotePad is being opened",15,1) while WinExists ( "Notepad",) Sleep(1000) wend Exit Jos Edited December 8, 2003 by JdeB SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BlueScreen Posted December 8, 2003 Author Share Posted December 8, 2003 10x This is good. Link to comment Share on other sites More sharing options...
Guest Christian_Blackburn Posted December 10, 2003 Share Posted December 10, 2003 (edited) Hi BlueScreen, I would recommend making it: While WinExists(" - Notepad") If someone happened to have a program running called "SuperNotepad" running or was editing a word document called "New line of 3M Notepads.doc" you would wind up with false positives without implimenting my suggestion. Cheers, Christian Blackburn Edited December 10, 2003 by Christian_Blackburn Link to comment Share on other sites More sharing options...
CyberSlug Posted December 10, 2003 Share Posted December 10, 2003 Christian Blackburn is right--I've encountered this issue!BTW, the SplashTextOn function is an alternative method worth considering. 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...
BlueScreen Posted December 10, 2003 Author Share Posted December 10, 2003 Right. Thanks alot. You all have been very helpfull. As always. 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