hi buddies.
I have webbrowser control on my form
I want to open Google.com and then want to paste some text like
"France" in Search textbox. and then want to click
"Google Search" Button ...
So how to do it ...
Thx in advance..
Printable View
hi buddies.
I have webbrowser control on my form
I want to open Google.com and then want to paste some text like
"France" in Search textbox. and then want to click
"Google Search" Button ...
So how to do it ...
Thx in advance..
Wouldn't it be easier to navigate to http://www.google.com/search?q=France directly? Just change the word France to whatever you're searching for. If you search for more then one word separate them with a plus sign.
You could also look up some examples where you can type what to search for into a textbox inside your application, and list the results in a listbox. I think the examples use INet, but I'm not too sure. Searching Planet Source Code returns a few results.
Phreak
Quote:
Originally Posted by Joacim Andersson
No NO no Joacim
it sounds gr8 .
but i want to get the result in my prescribed way ....
:wave:
In that case, search for posts by EJ12N. He used the Document Object Model to accomplish tasks such as this.
Also, searching the forums for anything like this will return some results, as people have asked such things before.
Phreak
Why is it so important for you that Google creates that URL for you when you can navigate to it directly?Quote:
Originally Posted by vbPoet
who is that EJ12N
and how to search particular posts ...?
hmm
Joacim because as u r saying this method is only useful for google to type accurate address.
but what i m asking
Can be used anywhere like signing in hotmail or anywhere else as well..
There may be other situations as well.
So ,,,,...
Unfortunately i have found nothing useful to my problem by searching about EJ12N's posts and others as well..
vbPoet
Try These Posts :wave:
Quote:
Originally Posted by Mark Gambo
vBulletin Message
Sorry - no matches. Please try some different terms.
:mad: :mad: :o :mad: :mad:
Well as a general way of doing it, first you will need to know the name of the input box. You can usually get this from the address generated. In Google's case the address is
www.google.com/search?q=
All the values submitted from the form (the search page) have an equals sign after them. In this case the search query is in a field called "q" as you can probably work out from q=. If there are more values sent then they are separated by ampersands, e.g. "?q=Something&start=0".
That means that on the search page, the input box's name is also "q". You can also get this by looking at the source code for the page.
Now to fill that in you will need to use the DOM to find that field and insert a value. How you do that I'm not quite sure, but it can definitely be done. TheVader would know :)Code:<input maxLength=256 size=55 name=q value="">
Quote:
Originally Posted by penagate
It sounds gr8 for problems in which querystring is used .. like in GOOGLE
but what is to do if i want to treat www.hotmail.com
like
typer username & password automatically and when it will display the account .. Then click on INBOX button .....? :ehh:
Well as a rule of thumb for all pages with forms (text boxes, submit buttons etc.) you need to take a peek at the HTML source code to find out the name of each input element. In the case of Hotmail that would be the username and password field, and then of course you also need to find the login button. The Inbox I think is a link (My Messages?).
edit: Never finished what I was going to say. You can use the DOM from VB to set the text of the elements (if you know their names) and I'm pretty sure you can also submit a form.
Ok penagate
where can i find help about DOM using Vb6...?