Sign in to follow this  
Followers 0
AzKay

TrayTip timeouts not working? =S

6 posts in this topic

#1 ·  Posted (edited)

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- #

Share this post


Link to post
Share on other sites



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.)


[center]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.[/center]

Share this post


Link to post
Share on other sites

Hmm, Ooops, sorry bought thatm missread, the min-max part ^^; But I promise you, I DID read it. =3


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Make something custom:

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

Edited by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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- #

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

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  
Followers 0