Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically sign-in into web site ?
Message
 
 
À
14/06/2008 08:58:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01324110
Message ID:
01324150
Vues:
103
This message has been marked as a message which has helped to the initial question of the thread.
>I would like to parse web site, access the fields on web page and fill-in automatically. How to do that ? I have already done that kind of things some years ago, but I do not remember how.

The following code shows how programmatically login into UT. It should get you started
lnLoadTimeout = 60		&& seconds
loIE = Createobject("internetexplorer.application")
loIE.Visible = .T.
loIE.Navigate("www.levelextreme.com")
* Wait for load to complete
lnSeconds = SECONDS()
DO WHILE (loIE.Busy OR loIE.ReadyState <> 4) ;
		AND (SECONDS() - lnSeconds) < lnLoadTimeout
	DOEVENTS
ENDDO

WITH loIE.Document.Forms(0)
	.UserName.Value = lcUserName
	.Password.Value = lcPassword
	.Submit()
ENDWITH	
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform