au3scr Posted December 20, 2008 Share Posted December 20, 2008 Hi does anyone know how to automatically destroy a ToolTip after X seconds? I want make my program show ToolTip for 5 secs and then delete it, and I also want then script can continue working normally while it is displaying tooltip for 5 secs.I also looked help, and I didnt find timeout paremeter for tooltip :S How I could do that? Link to comment Share on other sites More sharing options...
ChrisL Posted December 20, 2008 Share Posted December 20, 2008 Tooltip("Hello") Sleep(5000) ToolTip( "" ) Sleep(2000) Msgbox(0,"","End") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
MaximusCZ Posted October 8, 2018 Share Posted October 8, 2018 Since I stumbled upon this thread after 10 years and there is still no valid response, I present my solution, for whomever might come looking for solution after me. To Show ToolTip for desired time, while the script continues in the meantime, I define custom tooltip function wrapper: Func _ToolTip($msg = "", $timeout = 1000) ToolTip($msg) AdlibRegister(_ToolTipStop, $timeout) EndFunc Func _ToolTipStop() ToolTip("") AdlibUnRegister(_ToolTipStop) EndFunc This destroys the tooltip after set timeout. Note that here I use timeout as second argument, if you wish to display the tooltip on specified location, you have to add those parameters. Professor_Bernd 1 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