sc4ry Posted July 6, 2007 Share Posted July 6, 2007 Hey Guys, i have a timer function which displays the minutes & seconds until end. but i want to see hour and minutes until end and i´m not able to do this ... can anybody help me? If $CmdLine[2] = "-m" Then Local $begin = TimerInit(), $diff $Countdown *= 60000 Do $diff = TimerDiff($begin) ToolTip(StringFormat("in %02i:%02i Minuten", Floor(($Countdown - $diff) / 60000), Floor(Mod($Countdown - $diff, 60000)/1000)), 0, 0, $head) Sleep(100) Until $diff >= $Countdown ToolTip("") EndIf Link to comment Share on other sites More sharing options...
Siao Posted July 6, 2007 Share Posted July 6, 2007 Open up Help file and check out the example for _TicksToTime function. "be smart, drink your wine" Link to comment Share on other sites More sharing options...
sc4ry Posted July 6, 2007 Author Share Posted July 6, 2007 sorry, but that don´t help me (i can´t understand this) i think i only need the calculation for >>> ToolTip(StringFormat("in %02i:%02i Minuten", Floor(($Countdown - $diff) / 60000), Floor(Mod($Countdown - $diff, 60000)/1000)), 0, 0, $head) 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