Jump to content

TimerStart


Recommended Posts

  • Moderators

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

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...