Reply
Mon 5 Apr, 2004 07:04 am
I want to do the task that when someone right click on the selected text in internet explorer, in right click context menu there should be another option (i.e. save to txt). by clicking that the selected text should be saved into a text file on desktop. on each click the selected text should be added to that particular file. please help me how to call this copy function. I've added the "save to txt file" menu in the selected text's context menu but dont know how to call function to copy and save. also dont know in which language the script should be written.
Thanks
Can you clarify your request? Are you talking about the save to file script offered in the portal?
Copy selected text to a Text file
I am asking simply to send selected text in internet explorer to a text file on desktop by right click context menu option. On each right click, the selected text will be added to the same text file on desktop.. I've entered the "save to text file" option in the right click context menu. only copy and paste to text file coding is needed.
Thanks.
Posting this under the Web Development & Design forum is misleading people, IMO (it should actually be under the Computers forum). I do not have the solution for you, but I believe I understand what you are trying to do, so I'll reword it here in case it helps others who might be along to help you. Correct me if I'm getting any of this wrong...
Okay, so you've already added an option to the Internet Explorer menu you get when right-clicking selected text (under Copy, Paste, Select All, etc., similar to the "Google Search" option that's available after installing the Google Toolbar). Your new menu item you've added currently doesn't do anything when you click it, but ultimately you want it to append selected text to the end of a certain .txt file on your desktop.
Does that sound about right?
If it's a web design issue you need to have users download a browser plugin or you need to override the context menu with javascript.
My guess is that it's not a web design issue. I believe winsum just wants help with programming an IE plugin, & since that isn't done using web programming languages, I think this request doesn't strictly have much to do with web development either.
Copy selected text to a text file
Thanks for your time. I want to explain that when google search in context menu is clicked , an html script is called in a dll file which gets the selected text and paste it into google search engine. Just like this I want to make a script that will call (when button in context menu is clicked) and seleceted text will be copied to the text file. I'll set the path of that html file in registry.