Jump to content
Sign in to follow this  
sc4ry

Hour & Min Timer

Recommended Posts

sc4ry

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

Share this post


Link to post
Share on other sites
Siao

Open up Help file and check out the example for _TicksToTime function.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites
sc4ry

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)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.