How to search google&click from my app on remote link?

  • Thread starter Thread starter Vjay77
  • Start date Start date
V

Vjay77

I have pretty troubeling problem.

I'd like to create an app which would submit a search to google.com
and then I need to click on one of the results.

I need to click on one which matches the website I was looking for...

I will probably put axwebbrowser into my form and populate link into
it, something like

http://www.google.ca/search?hl=en&ie=UTF-8&oe=UTF-8&q=online+coffee+bar&spell=1

where I submit keywords...

But how do I read the webbrowser window for the website I was looking
for? and how do I click on it after? the way that google recognized
that it was clicked on it from their search windows...

vjay
 
* (e-mail address removed)-spam.invalid (Vjay77) scripsit:
I have pretty troubeling problem.

I'd like to create an app which would submit a search to google.com
and then I need to click on one of the results.

I need to click on one which matches the website I was looking for...

I will probably put axwebbrowser into my form and populate link into
it, something like

http://www.google.ca/search?hl=en&ie=UTF-8&oe=UTF-8&q=online+coffee+bar&spell=1

where I submit keywords...

But how do I read the webbrowser window for the website I was looking
for? and how do I click on it after? the way that google recognized
that it was clicked on it from their search windows...

Maybe you want to use the Google Web API:

<http://www.google.com/apis/>
 
To be completely clear on what exactly I need to do:

- I need to simulate the user click on google link

There is automatically another question:

- if I click on one of the google.com search results (one of the
links), is it the same thing as if I just navigated by axwebbrower to
google search page (the one with my link) and then right from the
same axwebbrowers screen loaded with google results, switched to my
web link?

It's not really a clicking on the link, but switching from search
result screen to my site, isn't it a same???

Wouldn't it be the same?

martin
 
Hi Martin,

This is to much explanation for a newsgroup, but I think you are on the
right way, I think you need also MSHTML, have a look for it.

And when using it, do not import it, it makes your IDE terrible slow.
Just reference it everytime like mshtml.Idocument2 or something.
(And then you become nervous so slow as that is)

I hope this helps?

Cor
 
Back
Top