VBScript How to Check if Timer is Enabled

Posted by Squireofmicah on Thu 06 Apr 2006 05:05 AM — 2 posts, 12,716 views.

#0
I presently have a number of different timers running on a single plugin. I was wondering what was the way to check if a timer was present enabled.


world.enabletimer "Timer1", 1

I know that will enable a timer, but what is the syntax to check if Timer1 is enabled?

if Timer1.isEnabled? then
perform whatever
end if

Basically if the Timer is enabled I want said If statement executed.
Australia Forum Administrator #1
See:

http://www.gammon.com.au/scripts/doc.php?function=GetTimerInfo