Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB Script for UT login does not work!
Message
 
À
02/06/2003 13:53:32
Information générale
Forum:
Internet
Catégorie:
VBScript
Divers
Thread ID:
00795325
Message ID:
00795487
Vues:
12
This is working for me:

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("login2").value="XXXXXXXXXXXXXXX"
oIE.Document.All("Password").value="YYYYYYYYYYY"
oIE.Document.Forms(0).Submit



>This VB Script no longer works:
>-------------------------------
>
>' 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.Forms(0).Username.Value = "XXXX"
>
>oIE.Document.Forms(0).Password.Value = "XXXXXX"
>
>oIE.Document.Forms(0).Submit
>
>-----------------------------------------------------------
>
>The error message says that this line is the problem:
>
>oIE.Document.Forms(0).Username.Value = "XXXX"
>
>"Object doesn't support this property or method..."
>
>Any suggestions?
>Thanks,
>Terry Harris
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform