Command3r Posted June 4, 2012 Share Posted June 4, 2012 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 WEndany 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 More sharing options...
AdmiralAlkex Posted June 4, 2012 Share Posted June 4, 2012 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. Command3r 1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Inverted Posted June 4, 2012 Share Posted June 4, 2012 (edited) 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. Edited June 4, 2012 by Inverted Command3r 1 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 4, 2012 Share Posted June 4, 2012 This stays on for about 2 seconds.Yes it does, but that is not what you are doing in the first post.Also your loop makes no sense. Try again. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Inverted Posted June 4, 2012 Share Posted June 4, 2012 I'm telling the OP that he can hide the Traytip manually by using TrayTip("","",1) at the right moment. That was just a proof of concept test with the sleeps. Link to comment Share on other sites More sharing options...
Command3r Posted June 4, 2012 Author Share Posted June 4, 2012 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 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