Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use VB Script to Automate UT Login
Message
From
07/02/2002 07:39:39
 
General information
Forum:
Level Extreme
Category:
Other
Miscellaneous
Thread ID:
00320576
Message ID:
00616513
Views:
32
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform