Working with timers at run time?

Mediator
07-21-2003, 09:16 AM
Hi, I have a program where the user can create a timer through something like a script i.e. CreateTimer(1) which would call Load Timer1(1) and other commands like SetTimer(1, 1000) which would call Timer1(1).interval = 1000. The problem is I cant figure out how the use could make the timer do anything, and I'm wondering if its possible to do something like this. So any help?

Syko10-96
07-21-2003, 09:21 AM
Hello,

If you're looking how to use the timer to run code when the timer fires, you need to use the Timer1_Timer() procedure. Whatever you want to happen when the timer fires needs to go in here...

Hope this helps :)

Tweakish
07-21-2003, 09:23 AM
Does your first timer have an index value? It needs one. 0 works just fine.

Mediator
07-21-2003, 09:39 AM
Of course it has an index value, and I know about the timer proc, but that doesnt help how the user could script in commands to be preformed when the timer activates.

Thinker
07-21-2003, 10:01 AM
You would have to create a scripting language that the user can write
in and you can interpret in the Timer event sub. It could be something
as simple as VBScript where you use the script control to execute it, or
you could go all the way and design it from scratch.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum