>Here's a VB Script that will log you into the UT automatically. Save it as a textfile named UTLogin.vbs. Click on the file, and it will launch IE, and log you in to the UT.
>
>
' UTLogin.vbs
>
>Set oIE = CreateObject("InternetExplorer.Application")
>
>oIE.Visible = True
>
>oIE.Navigate("www.levelextreme.com")
>
>while oIE.Busy: wend ' wait for page to load...
>
>oIE.Document.All("Key").value="YourUserNameHere"
>
>oIE.Document.All("Password").value="YourPasswordHere"
>
>oIE.Document.Forms(0).Submit
================================= MY VBS CODE:
' UTLogin.vbs
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate("
www.levelextreme.com")
while oIE.Busy: wend ' wait for page to load...
while oIE.Document.ReadyState <> "complete": wend
oIE.Document.All("Key").value="YourUserNameHere"
oIE.Document.All("Password").value="YourPasswordHere"
oIE.Document.Forms(0).Submit
=================================
Hi Ken,
I now get a Windows Script Host ERROR:
Object required: oIE.Document.All(...)'
that is pointed at this line:
oIE.Document.All("Key").value="YourUserNameHere"
Can you help debug this error?
This code has worked for a year or so until
just recently. I guess something at UT changed.