E1M1 8 Posted January 9, 2011 Hi I am tryng to make program that tells how much time i have left until given time. But it gives something that isnt right... negative time $4HoursLater = TimerInit() + (4*60*1000); Add 4 hours to current time While 1 tooltip($4HoursLater - TimerInit());Shouldnt be negative. WEnd edited Share this post Link to post Share on other sites
enaiman 16 Posted January 9, 2011 Try 4*60*60*1000 SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
Raupi 0 Posted January 10, 2011 (edited) Try this $Timer = TimerInit() $4Hours = (4 * 60 * 60 * 1000) While 1 ToolTip(Round($4Hours - TimerDiff($Timer), 0)) WEnd or #include <Date.au3> Local $iHours, $iMins, $iSecs, $Timer = TimerInit() Local $4Hours = (4 * 60 * 60 * 1000) Local $Time, $oldTime While 1 _TicksToTime($4Hours - TimerDiff($Timer), $iHours, $iMins, $iSecs) $Time = StringFormat("%02i:%02i:%02i", $iHours, $iMins, $iSecs) If $Time <> $oldTime Then ToolTip($Time) $oldTime = $Time Sleep(10) WEnd Edited January 10, 2011 by Raupi Share this post Link to post Share on other sites