Programming4us
         
 
 
Windows

Windows 7 : Using Any Search Engine from the Address Bar

10/17/2010 4:41:15 PM
Searching via the Search box is often easier than visiting the search engine’s site directly, but you’re limited to using either the default search engine or some other search provider that you’ve added to Internet Explorer. But what if you regularly use several search engines, depending on the search text or the results you get? In that case, it’s possible to set up address bar searching for any number of other search engines.

To see how this works, let’s run through an example. Follow these steps to set up address bar searching for Google:

1.
Select Start, type regedit, press Enter, and then enter your UAC credentials. (In Windows XP, select Start, Run, type regedit, and click OK.) The Registry Editor appears.

2.
Navigate to the following key:

HKCU\Software\Microsoft\Internet Explore\SearchURL

3.
Create a new subkey. The name of this subkey will be the text that you enter into the address bar before the search text. For example, if you name this subkey google, you’ll initiate an address bar search by typing googletext, where text is your search text.

Tip

I suggest using subkey names that are as short as possible to minimize typing. For example, I use the name g for my Google key (meaning that I can search by typing gtext into the address bar).

4.
Select the new subkey and double-click its (Default) value for editing.

5.
Type the URL that initiates a search for the search engine, and specify %s as a placeholder for the search text. For Google, the URL looks like this:

http://www.google.com/search?q=%s

6.
You also have to specify the characters or hexadecimal values that Internet Explorer substitutes for characters that have special meaning within a query string: space, pound sign (#), percent (%), ampersand (&), plus (+), equal (=), and question mark (?). To do this, add the following settings to the new subkey. Note that these values work with all search engines.

NameTypeData
<space>REG_SZ+
#REG_SZ%23
%REG_SZ%25
&REG_SZ%26
+REG_SZ%2B
=REG_SZ%3D
?REG_SZ%3F

Figure 1 shows a completed example. The text that you type into the address bar before the search string—that is, the name of the new subkey—is called the search prefix.

Figure 1. A sample search prefix for the Google search engine.


How do you know the proper URL to use for a search engine? Go to the search engine site and run a search with a single word. When the results appear, examine the URL in the address bar, which usually takes the following general form:

ScriptURL?QueryString

Here, ScriptURL is the address of the site’s search script, and QueryString is the data sent to the script. In most cases, you can just copy the URL and substitute %s for your search text when you set up your search prefix. I often experiment with reducing the query string to the minimum necessary for the search to execute properly. For example, a typical Google search might produce a URL such as the following:

http://www.google.com/search?rls=ig&hl=en&q=mcfedries&btnG=Search

In the query string, each item is separated by an ampersand (&), so I delete one item at a time until either the search breaks or I’m down to the search text (q=mcfedries in the earlier query string). To save you some legwork, the following are the minimal search URLs for a number of search sites:

All the Web:

http://www.alltheweb.com/search?query=%s&cat=web

AltaVista:

http://www.altavista.com/web/results?q=%s

AOL Search:

http://search.aol.com/aolcom/search?query=%s

Ask.com:

http://www.ask.com/web?q=%s

Encarta (Dictionary only):

http://encarta.msn.com/encnet/features/dictionary/DictionaryResults.aspx?search=%s

Encarta (General):

http://encarta.msn.com/encnet/refpages/search.aspx?q=%s

Excite:

http://msxml.excite.com/info.xcite/search/web/%s

Live.com:

http://www.live.com/?q=%s

Lycos:

http://search.lycos.com/default.asp?query=%s

Technorati:

http://www.technorati.com/search/%s

Yahoo!:

http://search.yahoo.com/bin/search?p=%s

Other -----------------
- Windows 7 : Understanding Internet Explorer Advanced Options
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Most View
- Exchange 2007: How Do I Modify a Database Size Limit?
- Windows 7 : Enhancing Your Browsing Security (part 1) - Blocking Pop-Up Windows
- Enable the Global Audit Policy by Using the Command Line
- Windows Phone 7 : Updating Your Phone Software
- SOA with .NET and Windows Azure : WCF Discovery (part 1) - Discovery Modes
- Microsoft ASP.NET 3.5 : WCF Services for ASP.NET AJAX Applications
- Securing Windows 7 : Thwarting Snoops and Crackers (part 2) - Locking Your Computer Manually, Automatically
- Windows 7 : Accessing a Shared Printer
- SQL Server 2008 : Data Encryption - SQL Server Key Management
- Windows 7 : Firing Up the Registry Editor