Specification
DEVELOPMENT HISTORY
April 26, 2009
1. Add an item to right click (context) menu:HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\
Notes:
* The right click menu item wont appear until you fill both the Default and Contexts data values.
* The above method only works for internet explorer. It seems for the time being there is no way to modify Chrome's context menu
* Google Chrome installation directory: C:\Users\UserName\AppData\Local\Google\Chrome\
2. Associate right click menu item with a program:
* Tried with test.exe... nothing happened. Copied an htm file as test.htm. It had some bluetooth script written with vbscript... Vista responded and asked if I allow the operation. Seems like we cannot call an exe directly. We have to use a script and embed it into an htm file.
* Learn how to call an executable from javascript/vbscript
* Learn how to avoid confirmation dialogs: Saved script that calls Notepad.exe in a *.hta (stand alone html) file. At first Vista asked if I allow. I said allow and checked "do not ask again for this program". Works fine.
3. Write a program that gets the selected text and writes it to a text file
* Get selected text
* Write selected text to file.
** Write text to file. When I call the hta file from context menu it does nothing. If I double click on hta, it writes the file just fine. Hmmm
** Write selected text to file.
No comments:
Post a Comment