
I cannot use WScript.CreateObject("MSWinsock.Winsock","Tcp1_") in .hta
In HTML (including HTAs), use the standard <OBJECT> tag instead of CreateObject... You can also try
using ScriptX from www.meadroid.com which supports connecting event sinks to sources "after the
fact"...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup...
--
Quote:
> In a file .vbs I can use this:
> Set TCP1 = WScript.CreateObject("MSWinsock.Winsock","Tcp1_")
> but, inside a file .hta (HTML Application) I need to use
> Set TCP1 = WScript.CreateObject("MSWinsock.Winsock")
> It do not accept the sufix "Tcp1_" then I cannot use the events
> generated by it.
> I need to make my own flow control based on TCP1.state, settimeout(The
> WScript.Sleep() in not accepted too), etc.
> I am using IE 5.5 under Windows 2000.
> Can someone help me?
> Thanks forward.