|
-
Jul 10th, 2006, 06:36 PM
#1
Thread Starter
Hyperactive Member
how open a web search
i can easily open a google URL to search for a desired string by parsing the address.
but:
how can i search the web with a user's default search engine?
i am trying to avoid 'terms of service' complications associated with favoring one particular search provider.
for example: if i submited beatles, it would search the web using MSN by default, or if they had set up thier search bar, google or yahoo.
can i specify some type of special URL to shellexecute, or will i have to make a webbrowser control to figure it out?
any help welcome!
-
Jul 11th, 2006, 06:51 AM
#2
Re: how open a web search
Well if you look at the address in the search engine that will give you some idea of the format to ShellExecute.
Google search for visual basic
http://www.google.co.uk/search?hl=en...G=Search&meta=
Yahoo search
http://search.yahoo.com/search?p=vis...&cop=&ei=UTF-8
Altavista search
http://uk.altavista.com/web/results?...ic&kgs=1&kls=0
So you can see where visual basic fits in.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Jul 11th, 2006, 07:10 PM
#3
Thread Starter
Hyperactive Member
Re: how open a web search
 Originally Posted by Keithuk
thanks for the reply.
i have no problem parsing urls, submitting, etc.
i was wondering if there is a generic search method i could use instead of specifying a particular engine.
in other words, i want to mimic the 'auto search' feature of windows, invoked when a non-url is typed into the address bar of an explorer window.
if it were up to me, i would just use google all the time, but i read recently about google suing M$ over Vista using MSN as the default search engine.
i figure if i could use the user's default, i would avoid any such problems arrising from favoring a particular site.
any ideas on how to invoke an auto search?
-
Jul 11th, 2006, 08:01 PM
#4
Re: how open a web search
Give users the option to select the search engine out of a small list of better ones.
-
Jul 11th, 2006, 10:05 PM
#5
PowerPoster
Re: how open a web search
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|