Jump to content

Traytip doesn't hide


Recommended Posts

hello, i made a script to show a traytip every "10 SECs" and timeout is "2 SECs", but i don't know why it doesn't hide after 2 SECs or even 1000 sec,, i must click on it to hide :)

;) check the script:

While 1

$start = TimerInit()
Sleep(10000)
$End = TimerDiff($start)

$rEND = Round($End / 1000, 0)

If $rEND = "10" Then
  $x = TrayTip("test", "testtt", 2)
  Sleep(2000)
EndIf

WEnd

any help would be appreciated :)

thanks.

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

Link to comment
Share on other sites

I guess you missed this in the helpfile:

(Windows has a min and max of about 10-30 seconds but does not always honor a time in that range.)

2 seconds is less than 10.
Link to comment
Share on other sites

It also says to call it again with empty text to hide the previous traytip :

TrayTip ( "title", "text", 1)
sleep (2000)     ;  ---- wait two seconds
TrayTip ( "", "", 1)
sleep (100000)

This stays on for about 2 seconds.

I guess you missed this in the helpfile:

2 seconds is less than 10.

hmm, but i think this is not the reason ;)

thanks for help.

It also says to call it again with empty text to hide the previous traytip :

TrayTip ( "title", "text", 1)
sleep (2000)     ;  ---- wait two seconds
TrayTip ( "", "", 1)
sleep (100000)

This stays on for about 2 seconds.

Worked!! This what i wanted

thanks. :)

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

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

×
×
  • Create New...