Thank you very much. With the information you provided i was able to get the script working like i wanted to.
I would like to take a closer look at 2.1 at a later time to optimize the script, because as you has said wshshell sendkeys is not the right way.
Thanks again
Okay that seems reasonable.
This code fill username and password forms in a webpage:
Set IE = CreateObject("InternetExplorer.Application")
set WshShell = WScript.CreateObject("WScript.Shell")
IE.Navigate "http://mylogin.page"
IE.Visible = True
Wscript.Sleep 6000...
Hello
I am trying to customize a vbscript that fill web forms like this one:
http://p2p.wrox.com/vbscript/72327-using-vbscript-fill-out-web-form.html
Is it possible to add some code that check if the field exists before filling with data. Ex. if the field fld_userName do not exists the script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.