I have been working on a Vbscript to login to a website, pass a login and click a submit button. I have successfully completed a working script I now wish to translate to xHarbour and FWH.
Here is the Vbscript code .. I have searched the forum and see where you can use active x and James posted some code to my above previous thread .. my problem now is to be able to navigate the site using the DOM id's or name of the fields I wish to populate .. logins and searches for parts .. etc
Any help would be appreciated.
Thanks
Rick Lipkin
- Code: Select all Expand view
Option Explicit
Dim IE, WshShell
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate "http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1253879194&rver=6.0.5285.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&lc=1033&id=64855&mkt=en-us"
Do While .Busy
WScript.Sleep 200
Loop
' use the web page dom names to fill in the proper fields
.Document.getElementsByName("login").Item(0).Value = "myuserid"
.Document.getElementsByName("passwd").Item(0).Value = "mypassword"
wscript.sleep (100)
' set up the submit button click
set WshShell = WScript.CreateObject("WScript.Shell")
wscript.sleep (100)
WshShell.SendKeys "{Enter}"
End With