Search Tools Links Login

Add your programs to the IE context menu!!!


Have you ever seen that menu items that appear in the IE context menu, that menu that appears when you right click?
Well, this tutorial will teach you how to add you programs to that menu so when you click on that menu item a program or internet URL will open

Original Author: Design7 Software

Code

How to add your programs to the
Internet Explorer context menu


Have you ever seen that menu items that appear in
the IE context menu, that menu that appears when you right click?

Well, this tutorial will teach you how to add you programs to that menu so when
you click on that menu item a program or internet URL will open


To run a program from the context menu:


To add a menu item to the IE context menu first
run regedit.exe, located in the Windows folder, then create a registry group in
the group "HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExt",
then name that new group with the text that you want to appear in the menu item,
now you have the menu item.

The next step is to giving the menu item a file to open or run, to do this open
the group you have created and double click in the key that is named
"(Default)" and change it's value to the program you want to run


To open a URL from the context menu


Do the same steps, only replace the program path
with the path of an HTML file, to do this create an HTML file, and put the
following code on it, remeber that the context menu cannot point directly into a
URL, that is that you can't put the URL directly into the registry value.


<script
language="JavaScript">

<!--

window.location="http://www.planetsourcecode.com";

//-->

</script>


and put the URL you wan open.


And that's all, now to view your new menu open
Internet Explorer and then right click inside the document opened, and now look
for your menu, it will be there, now click it and the file or URL that you
specified will be opened.


Here ends this tutorial, if you liked this
tutorial please vote for it and post your comments.

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 100 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.