Jump to content

Hour & Min Timer


Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...