sumone4life Posted February 17, 2007 Share Posted February 17, 2007 when i try and use the TimerStart() function i got an error message in the console box saying its an unknown function name... anyone know why? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 17, 2007 Moderators Share Posted February 17, 2007 when i try and use the TimerStart() function i got an error message in the console box saying its an unknown function name... anyone know why?TimerStart() = TimerInit()TimerStop() = TimerDiff()This is quite a while ago the change was made, what version of AutoIt are you using? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted February 17, 2007 Share Posted February 17, 2007 (edited) Use TimerInit(). TimerStart() is older alias of TimerInit(). And use TimerDiff() to stop the timer. Edit: Beaten, Holy smoke I am slow. Edited February 17, 2007 by MHz Link to comment Share on other sites More sharing options...
sumone4life Posted February 17, 2007 Author Share Posted February 17, 2007 autoit 3.2.2 alright thanks guys ill do that One question... why change it to TimerInit and Timer Diff.... it would seem TimerStart and Stop would be easier to remember. Thanks Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 17, 2007 Moderators Share Posted February 17, 2007 (edited) autoit 3.2.2 alright thanks guys ill do that One question... why change it to TimerInit and Timer Diff.... it would seem TimerStart and Stop would be easier to remember. ThanksTimerDiff() doesn't actually stop the Timer that was initiated. I don't make up the function names, but I'm sure they felt that there was a good reason for it. I have been using TimerInit() for so long now, it's hard for me to remember when it was initiated to even see what their reasoning (if they gave one) was. Edit: I guess if your stuck on the names, you could always do:Func _TimerStart() Return TimerInit() EndFunc Func _TimerStop($nTimer) Return TimerDiff($nTimer);Doesn't stop the timer though... EndFunc Edited February 17, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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