G
Guest
Can anyone tell me if there's a way to fillin a web form using SendKeys?
I have written a program that uses Com Interop to create an instance of IE,
and navigate to the correct webpage.
Then I use a series of SendKey("{TAB}") commands to get to the correct input
box on the webpage.
Next I try to use the SendKey command to enter phrase to utilise, but all I
get is another instance of the same webpage, not the result that I expect.
Can the Sendkeys command be used to send info to a search box on the web, or
is there another way.
My code looks like this.
Dim IE As New SHDocVw.InternetExplorer
IE.Navigate("Http://www.groups.google.com")
IE.Visible = True
SendKeys.Send("VBA")
SendKeys.Send("{ENTER}")
I have changed the website address as it's supposed to be confidential, and
removed some un-needed SendKey("{TAB}") commands but thus is essentially the
same as my non-working code.
If I run the code above then I get the same result as my real code, (Two
Google groups windows open)
I'm pretty new to all this VB.net stuff, having come from VBA so any help
would be greatly appreciated.
Thanks
Neil
I have written a program that uses Com Interop to create an instance of IE,
and navigate to the correct webpage.
Then I use a series of SendKey("{TAB}") commands to get to the correct input
box on the webpage.
Next I try to use the SendKey command to enter phrase to utilise, but all I
get is another instance of the same webpage, not the result that I expect.
Can the Sendkeys command be used to send info to a search box on the web, or
is there another way.
My code looks like this.
Dim IE As New SHDocVw.InternetExplorer
IE.Navigate("Http://www.groups.google.com")
IE.Visible = True
SendKeys.Send("VBA")
SendKeys.Send("{ENTER}")
I have changed the website address as it's supposed to be confidential, and
removed some un-needed SendKey("{TAB}") commands but thus is essentially the
same as my non-working code.
If I run the code above then I get the same result as my real code, (Two
Google groups windows open)
I'm pretty new to all this VB.net stuff, having come from VBA so any help
would be greatly appreciated.
Thanks
Neil