ecstatic Posted May 16, 2009 Posted May 16, 2009 Hey guys. How do i fix this. Traytip("D2AI", "Sleeping For " & $Timer & " seconds") Sleep(10) $Timer is a variable for a global timer which is in miliseconds. How do i display the traytip by making $Timer in seconds rather than miliseconds?
colafrysen Posted May 16, 2009 Posted May 16, 2009 (edited) Hey guys. How do i fix this. Traytip("D2AI", "Sleeping For " & $Timer & " seconds") Sleep(10) $Timer is a variable for a global timer which is in miliseconds. How do i display the traytip by making $Timer in seconds rather than miliseconds? $Timer*1000 ? And if you do not want a hell of alot of decimals use Round($timer*1000,0) If this is what you want, that is. Edited May 16, 2009 by colafrysen [font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
ecstatic Posted May 16, 2009 Author Posted May 16, 2009 $Timer*1000 ?And if you do not want a hell of alot of decimals use Round($timer*1000,0)If this is what you want, that is.what does the ,0 do?Thanks.
Valuater Posted May 16, 2009 Posted May 16, 2009 what does the ,0 do? Thanks. do you have a help file? Round ( expression [, decimalplaces] ) 8)
Valuater Posted May 16, 2009 Posted May 16, 2009 code.. $Timer = TimerInit() While 1 ToolTip("Sleeping For " & (Int(TimerDiff($Timer) / 1000)) & " seconds", 20, 20, "D2AI", 1) Sleep(10) WEnd 8)
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