Re: Active X Timer Control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



hi Helen,

As best I can tell, the ms timer routine you are looking for is ieTimer.ocx. This timer was distributed by ms, and was included
in various ms products. If you google it, you can find some download
sites, which will supply it (most charge a fee). As far as ms itself,
I believe they regard ieTimer.ocx as obsolete.


As you probably know, IE itself has a built-in timer, and so any
actX object is no longer needed.

If you are writing a stand-alone script and need a timer, I would
suggest Steve McMahon's sSubTmr.dll (free). While it is generally
touted for subclassing, sSubTmr also has an easy-to-use (from script) timer class.


--- <snip> ---
Const tInterval = 2000  ' timer interval
Set oTMR = WScript.CreateObject("SSubTimer.CTimer", "oTMR_")

  oTMR.Interval = tInterval  ' turn on timer...

  ...

oTMR.Interval = 0 ' turn off timer...
Set oTMR = nothing ' clean up object (not necessary if you trust microsoft to clean up)...
WScript.Quit


' --- TIMER EVENT HANDLER ------------------------

Sub oTMR_ThatTime  ' timer event...
  MsgBox("detected timer event")
End Sub
--- </snip> ---

If interested, sSubTmr.dll may be found here:

http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/SSubTimer/VB6_SSubTmr_Binary.asp

cheers, jw
____________________________________________________________

You got questions?  WE GOT ANSWERS!!!  ..(but,
   no guarantee the answers will be applicable to the questions)





HoM wrote:
Hi,

silly question, but where can I download/purchase the Microsoft ActiveX Timer control. Need to use a timer client-side object with some VB script. Documentation mentioned Active X controls - specifically the Active X Timer control....it stated this could be found on the Microsoft ActiveX Software Development Kit. No idea where this is though...Can anyone point me in the right direction?

Thanks,

Helen
.



Relevant Pages

  • Active X Timer Control
    ... but where can I download/purchase the Microsoft ActiveX ... Timer control. ... Need to use a timer client-side object with some VB script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Yes
    ... You set the timer interval, ... The conventional way of doing this would be to write a wscript class, and then give a reference of the class to the script control. ... Public Property Let Parent ... Public Property Get CreateObject(vProgID As Variant, Optional vPrefix As Variant = "") As Object ...
    (microsoft.public.scripting.wsh)
  • Re: Restarting Pcs
    ... The script called "wait.ipf" works ... fine though timer is visible. ... "Terry M" escribió en el mensaje ... I thought you just wanted it to restart after 5 min. with no ...
    (microsoft.public.sms.installer)
  • Displaying Ajax data and using timers properly
    ... I'm trying to modify an example Ajax script to fit my needs. ... there is a setInterval timer used that periodically goes to ... of the setInterval restart. ...
    (comp.lang.javascript)
  • TimerFcn in functions
    ... If I run the file as a standard script file, the timer works as expected. ... the amount of data (ftell position inside the data file to be evaluated by ... The error says that fid is an unknown function/variable. ...
    (comp.soft-sys.matlab)