Sign in to follow this  
Followers 0
sumone4life

TimerStart

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Use TimerInit(). TimerStart() is older alias of TimerInit(). And use TimerDiff() to stop the timer.

:whistle:

Edit: Beaten, Holy smoke I am slow.

Edited by MHz

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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.

Thanks

TimerDiff() 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
:whistle: Edited 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.

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