Jump to content

TrayTip timeouts not working? =S


Recommended Posts

Ok, I make the tray tip, with, say, a 5 second time out. but the traytip doesnt time out after 5 seconds ><

TrayTip("", "Dont Forget To Read The Readme", 5, 1)

^ Doesnt go away after 5 seconds ^

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

  • Moderators

Ok, I make the tray tip, with, say, a 5 second time out. but the traytip doesnt time out after 5 seconds ><

TrayTip("", "Dont Forget To Read The Readme", 5, 1)

^ Doesnt go away after 5 seconds ^

timeout:A rough estimate of the time (in seconds) the balloon tip should be displayed. (Windows has a min and max of about 10-30 seconds but does not always honor a time in that range.)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Make something custom:

TrayTip("", "Dont Forget To Read The Readme", 5, 1)
Sleep(5000)
TrayTip('', '', 0)

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Not kewl, I put it on 10 seconds, still stays there until 30 seconds is up ><

Thanks ^^

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

  • 2 years later...

May be it help later...

Dim $Paused, $_TimerInit = TimerInit ( )
 
 _Pause ( )
 
 Func _Pause ( )
     $Paused = NOT $Paused
     While $Paused  
         _TrayTipTimed ( 'Launcher', 'En "Pause"...', 3000, 20000, 1, 0 ); 0= NoIcon, 1=Info icon, 2=Warning icon, 3=Error icon
     Sleep ( 100 )
     WEnd
 EndFunc; <===  _Pause ( )
 
 Func _TrayTipTimed ( $_Title= " ", $_Texte= " ", $_TrayTipOnTime=2000, $_TrayTipOffTime=30000, $_Icon=0, $_NoSound=1 )
     Local $_TimerDiff = TimerDiff ( $_TimerInit ), $_Space = ''
     If $_Icon Then $_Space = '     '
     If $_NoSound Then $_Icon = $_Icon + 16
     If $_TimerDiff < 500 Then TrayTip ( $_Title, $_Space & $_Texte, 1, $_Icon ) 
     If $_TimerDiff > $_TrayTipOnTime And $_TimerDiff < $_TrayTipOnTime + 500 Then 
         TrayTip ( '', '', 1, 1 )           
     ElseIf $_TimerDiff > $_TrayTipOnTime + $_TrayTipOffTime Then 
         TrayTip ( $_Title, $_Space & $_Texte, 1, $_Icon )
         $_TimerInit = TimerInit ( )            
     EndIf
 EndFunc; <===  _TrayTipTimed ( )
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...