Amen Posted May 13, 2006 Share Posted May 13, 2006 (edited) After a while an error is detected. (41 jump!) Tested both Compiled or not in two pcs. My Autoit files-> 06th May, 2006 - v3.1.1.123 (beta) Is a Failure of Autoit? ;@YEAR&@MON&@MDAY&@HOUR& $stamp=@MIN&@SEC $i=$stamp $past=TimerInit() do $stamp=@MIN&@SEC If Abs($stamp-$i)> 10 then MsgBox(0,"Error","On "&TimerDiff($past)&" milisecs "&Abs($stamp-$i)&" jump!") Exit EndIf SplashTextOn("",$stamp,100,15,-1,-1,1,"tahoma",8,400) sleep(500) $i=$stamp $past=TimerInit() until 1=0 This problem affects the File time-stamps also.(when creating or Writing a file, wrong timestamp is marking the file) Edited May 13, 2006 by Amen Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
flyingboz Posted May 13, 2006 Share Posted May 13, 2006 (edited) Is a Failure of Autoit?No. In order to run infinitely, your code does not account for the hour crossover, among several other deficiencies in logic, including, but not limited to, performing integer based comparisions on string variables. Edited May 13, 2006 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Amen Posted May 13, 2006 Author Share Posted May 13, 2006 (edited) Right.Now i noticed that error is shown every 59th second of time. Max of Min =59 not 99.Wrong to Substruct a time Stamp like this! The differnce must be calculated by converting the mininutes of the Timestamp into a seconds thnxxx Edited May 13, 2006 by Amen Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
Valuater Posted May 13, 2006 Share Posted May 13, 2006 (edited) in simple... our numeric system - based on 100 10-20-30-40-50-60-70-80-90-91-92-93-94-95-96-97-98-99-100 our time system ( sec, min and hours ) - based on 60 10-20-30-40-50-51-52-53-54-55-56-57-58-59-60 based on your approach 100 - 59 = 41 maybe this will help ;@YEAR&@MON&@MDAY&@HOUR& $stamp=@MIN&@SEC $i=$stamp $past=TimerInit() do $stamp=@MIN&@SEC SplashTextOn("",$stamp & @CRLF & $i & @CRLF & Abs($stamp-$i), 150, 40, 20, 20,1,"tahoma",8,400) If Abs($stamp-$i)> 10 then MsgBox(0,"Error","On "&TimerDiff($past)&" milisecs "&Abs($stamp-$i)&" jump!") Exit EndIf sleep(500) $i=$stamp $past=TimerInit() until 1=0 8) Edited May 13, 2006 by Valuater 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