Sign in to follow this  
Followers 0
Valuater

Is there a better way to do this

1 post in this topic

it works.... but just looks messy to me

$t = InputBox("Timer", " Please type in the minutes to wait")

tooltip("Timer = " & $t & " Minutes",0,0);,"", 5)

$begin = TimerInit()
$td = $t * 60 * 1000
$n = $t * 60 *1000

While 1
$dif = TimerDiff($begin)
if $dif >= $n then
    MsgBox(0,"Timer", "timer complete" & @CRLF & $dif)
    ExitLoop
EndIf
; to update tooltip with no "flicker" every 10+\- seconds
$tDif = $n - $dif 
If int($tdif) <= $td - 10000 Then
    $td = $td -10000
    $Tdif = $tdif / 60 / 1000
    tooltip("Timer = " & int($tdif) & " Minutes",0,0,"", 5)
EndIf
sleep(100)
WEnd

not the inputbox.... just after that

8)


NEWHeader1.png

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  
Followers 0