This post originated from an RSS feed registered with .NET Buzz
by Jon Box.
Original Post: IE Command Shortcuts - My Way To Google
Feed Title: Jon Box's Weblog
Feed URL: http://radio-weblogs.com/0126569/rss.xml
Feed Description: This is a log of my findings and amusements with .NET. I also present information on my presentations and others that I see.
Sometimes while I'm talking to someone and I jump into IE to do a search, spectators are shocked when I type "g someterm" into the IE address bar and get a Google search. I actually have several setup. Here is the list:
g ==> Google search gg ==> Google Groups search ggmc ==> Google Groups search in the ASP.NET Mobile Controls newsgroup ggcf ==> Google Groups search in the .NET Compact Framework newsgroup
Obviously, there are a million-and-one ways this could be used. But these are the main activities that I use it for.
So, how do I set this up? It's easy. First, do a search for "IE" and "SearchUrl". The latter term is part of the registry key that allows one to create IE "command shortcuts". This is a good article on the subject and shows several examples. Below is an example of my "g" command (done in a .REG file, since this is where I keep them for new machine setup):
[ H K E Y _ C U R R E N T _ U S E R S o f t w a r e M i c r o s o f t I n t e r n e t E x p l o r e r S e a r c h U r l g ] @ = " h t t p : / / w w w . g o o g l e . c o m / s e a r c h ? h l = e n & q = % s " " " = " + " " + " = " % 2 B " " % " = " % 2 5 " " & " = " % 2 6 "
This defines a "g" command that calls the Google web site, fills Google's "q" parameter with additional parameters typed in the textbox, translates any needed encoding, and filters it to English text sites with the Google's "hl" parameter. Along with a little knowledge of the web site's URL and parameters, this above information should be enough to get you going for most IE command shortcuts.