Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with the Webbrowser Control in VB
Message
 
À
12/02/2003 16:13:51
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00752471
Message ID:
00752500
Vues:
21
Is this something like this you are looking for?
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate("www.hotmail.com")
while oIE.Busy: wend ' wait for page to load...
oIE.Document.All("login").value="USERID"  *
oIE.Document.All("passwd").value="PASSWORD"  *
oIE.Document.Forms(0).Submit
>Howdy!
>It has been a while since I posted anything, and it is nice to see there is still a good community out here.
>Anyways, here is my problem: I'm working on an "automatic downloader" app in VB6. It goes to a client's website, and downloads info for a client remotely. The client's website has a very simple user-id and password screen. My problem is getting past the login screen automatically. Right now, everytime the user starts the app, the program takes the user to the website and the user has to manually enter the admin name and password. After they have gotten past the screen, the app can get to anywhere on the site with the cookie provided. Is there anyway to give the cookie to the webbrowser control without forcing the user to go to the website (or I guess I could try and manually steer the webbrowser to the login site and post the right information)? More generally, is there a way to get to and manipulate the cookies a webbrowser has in code?
>I'm frustrated because the only help I've been able to find on the webbrowser control is in the SDK, and it is heavily slanted toward VC. Is there any resonable help for programmers trying to figure out the webbrowser control in VB?
>Thanks a bunch!
>Vince
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform