Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


IE contextmenu

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,27971
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> IE contextmenu
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 IE contextmenu - 11/11/2005 8:23:52 PM   
  TNO


Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Users of Firefox are no doubt familiar with the Copy Image Location command in their mouse Context Menu. This command allows you to copy the URL of an image to the clipboard so that you can later paste it in a forum, address bar or whatever else. Internet Explorer doesn't have this useful function. At least not yet...


Heres how you can create it.

Copy the following piece of code into Notepad and save it as a HTML file to any location.

<script>
var image = external.menuArguments.event.srcElement;clipboardData.setData("Text",image.src);
</script>

create a registry key to point to this file:

1. Start>Run>regedit
2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt
3. Create a new sub-key and call it "Copy Image Location" (this is the text that appears in the menu)
4. Set the "(Default)" string value to the location of the html file we created
5. In the same key, create a new DWORD value called "Contexts" and give it a value of 2 (this means that the menu item appears only when you right click an image)

Finally, close all browsers and reopen them. Voila, behold your new context menu extension.

With a little imagination you can create just about any context item you want. vbscript/jscript/JavaScript and more.

More info:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/context.asp

If you come up with any cool/useful context menu extensions, please post them.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> IE contextmenu Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts