Re: Using sendkeys in a web form



"LuisE" <legonzales@xxxxxxxxx> wrote in message
news:BBBD29C4-4E30-45A6-848E-726E2E697FFC@xxxxxxxxxxxxxxxx
I need a script to open a website, tab thru a form in that webpage and
"submit" or "enter"at the 11th field (after doing tab for 11 times). I can
get the website open and the window acticvate but in order to be able to
tab
inside the page I need to "click" on it. How can I replicate the "click"
event by using SendKeys or other method of VBScript.

Here is what I have

Set wshshell=CreateObject("wscript.shell")

With CreateObject("InternetExplorer.Application")
.Navigate "http://www.hcso.tampa.fl.us/pub/default.asp?/Online/sname01";
.visible=true
End with

As mr_unreliable stated, use the methods of IE. Another method to
consider would be using the post URL. Below is a sample.

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Set oIE = CreateObject("InternetExplorer.Application")

sDate = "082208"
sPostURL = "http://www.hcso.tampa.fl.us/pub/default.asp?"; _
& "/Online/dailybook3"

oIE.navigate sPostURL & "?Date=" & sDate & "&report=D"
oIE.visible = True
Do Until oIE.ReadyState = 4 : WScript.Sleep 100 : Loop
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


.


Loading