VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add your programs to the IE context menu

by Design7 Software (7 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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

Rate Add your programs to the IE context menu

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_USER\Software\Microsoft\Internet Explorer\MenuExt",
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.

Download this snippet    Add to My Saved Code

Add your programs to the IE context menu Comments

No comments have been posted about Add your programs to the IE context menu. Why not be the first to post a comment about Add your programs to the IE context menu.

Post your comment

Subject:
Message:
0/1000 characters