Searching Amazon from any web page can be as simple as highlighting and clicking with an Internet Explorer context menu.
Save it in the c:\scripts\ directory.
Next you need to add some information to your Windows registry to let Internet Explorer know where to find AmazonSearch.html, and when exactly it should be executed. You could open up a registry editor and add values manually, but it’s just as easy to put the information into a .reg file and add it by double-clicking. Create a new file called AmazonContext.reg and add the following code:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\[RETURN]
Search Amazon] @="c:\\scripts\\AmazonSearch.html""contexts"=dword:00000010
Backslashes, like those in filesystem paths, need to be escaped as double-slashes (\\) in registry entry files.
Be sure to shut down all running copies of Internet Explorer. Once restarted, try browsing to any web page with text. Highlight any word and click your right mouse button. You should see the new entry as shown in Figure 1-18.
Click “Search Amazon” to open a new window with your search results for that term as shown in Figure 1-19.