Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically sign-in into web site ?
Message
 
 
To
14/06/2008 08:58:28
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01324110
Message ID:
01324150
Views:
102
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform