AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Two quick questions about turning a timer off.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Jaysun



Joined: 01 Nov 2004
Posts: 20

PostPosted: Tue Aug 15, 2006 8:07 pm    Post subject: Two quick questions about turning a timer off. Reply with quote

If I use SetTimer, MyTimer, Off within the MyTimer subroutine will that subroutine quit immediately or will it continue until the end of the subroutine?

Is this behavior different if the subroutine was run by a timer or by a gosub?


Thanks much,

Jason
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Tue Aug 15, 2006 8:10 pm    Post subject: Reply with quote

It will continue. It just doesn't start the next time the interval has passed.
It doesn't matter if called by a timer or gosub.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group