ravenfrozt Posted March 20, 2009 Posted March 20, 2009 (edited) Hello all! I would like to know if there's a way to make a timer that pop up when the script start, showing the time it's running. Thanks for ya help Edited March 20, 2009 by ravenfrozt
foster74 Posted March 20, 2009 Posted March 20, 2009 (edited) I'm confused exactly what you want, I'm guessing more then this? #Include <Date.Au3> Msgbox(0,'The Time', 'The current time is: ' & _NowTime()) Sorry I misread what you said, here is an example of doing it: AdlibEnable('_tooltip',1000) Global $Timer = TimerInit() While 1 sleep(5000) Wend Func _tooltip() $TimeDif = TimerDiff($Timer) $time_hours = Int($TimeDif / 3600000) $time_mins = Int(($TimeDif - $time_hours * 3600000) / 60000) $time_secs = Int(($TimeDif - (($time_hours * 3600000) + ($time_mins * 60000))) / 1000) Tooltip('Time running: ' & $time_hours & ' Hours ' & $time_mins & ' Minutes ' & $time_secs & ' Seconds.',0,0) EndFunc I know it's probably not the the best way to get the minutes and seconds but it should work fine Edited March 20, 2009 by foster74
ravenfrozt Posted March 20, 2009 Author Posted March 20, 2009 Thanks thats exactly what I wanted thank you ^^ finally woot tytyty
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