|
5
|
DonationCoder.com Software / Finished Programs / Re: IDEA: Copy selection on webpage as text with text hyperlink URL's and ASCIIart
|
on: March 28, 2011, 11:29:47 PM
|
I've sometimes used a Firefox extension that copies HTML as HTML into the Notetab editor, and using Notetab's built-in feature to strip HTML but retain URLs, though still have to add the URL of the page itself as a separate operation. I have thought of doing this but would really like a more simple solution. I do like Notetab, but don't have a license for the pro version, and feel limited by the non-unlimited undo of notetab light. I like Notepad++ and Editor 2. I'm sure there are many notepad replacements and other programs that have HTML stripping functions where I could do as you described, this may be my only option if I can't get something else to work. html2text: you might also like Nir Sofer's freeware HTMLAsText, which can also be run from the command line if required. I did notice this program in my searching. It appears the HTML must be saved as a file before this can be used. Again, a good program, but I would really like to do this a with basic copy and paste action or something similar. Perhaps I could write a script that would temporarily save the HTML snippet as a file, process it with HTMLAsText, then copy the converted text ready to be pasted? I don't know if I can do this with your other suggestion, Clipboard Help+Spell. I'll have to look into it. From the surface it doesn't look like it can easily be done.
|
|
|
|
|
6
|
DonationCoder.com Software / Finished Programs / Re: IDEA: Copy selection on webpage as text with text hyperlink URL's and ASCIIart
|
on: March 28, 2011, 09:31:54 AM
|
Ah, you want the text with all the markup and links and such, eh? If so, you will probably need to spring for Surfulator or maybe you could get by with the Scrapbook extension. Thanks for your suggestions. Scrapbook looks good, but the end result is still html from what I can see, and I really want to get it down to the text level. I just found html2text which has output which I like. Now if I can figure out how to automate capturing a snippet of HTML residing on the clipboard, processing it thru html2text, then copying it to the clipboard so that I can paste it into a text editor, I think I'd have a solution I can live with. Can AHK do this?
|
|
|
|
|
7
|
DonationCoder.com Software / Finished Programs / Re: IDEA: Copy selection on webpage as text with text hyperlink URL's and ASCIIart
|
on: March 27, 2011, 11:38:32 PM
|
OK, I think I got the AHK script to work. Thank you for your help. But I don't think it is doing what I want it to. I guess I should have actually read your script before I ran it. But at least I have now used AHK for the first time and know how it works. Your script copies the text, and the URL of the page that the text came from. This is nice, but not what I was trying to describe. Let me use the 5 last lines of http://www.autohotkey.com/download/ as an example. When I copy and paste them into a text editor from the browser, I am expecting something like this: Installer for AutoHotkey_L (http://www.autohotkey.net.../AutoHotkey_L_Install.exe): During installation it allows you to choose Unicode or ANSI, and 64-bit or 32-bit. It has many new features.
Installer for AutoHotkey Basic (http://www.autohotkey.com...oad/AutoHotkeyInstall.exe) (1.95 MB): This is the original AutoHotkey, suitable for those who don't need Unicode, objects/arrays, and other new features. If you prefer not to run the installer, download this zip file instead.
SmartGUI Creator 4.0 (http://www.autohotkey.com/download/smartgui.zip) (273 KB): A visual layout tool that automatically generates GUI scripts. For Windows 9x, get this version instead.
SciTE4AutoHotkey (http://www.autohotkey.net...s/SciTE4AutoHotkey_3/web/): A free editor for AutoHotkey scripts that offers syntax highlighting, AutoComplete, IntelliSense, code folding, and other features.
Other Downloads (http://www.autohotkey.com...wnload/OtherDownloads.htm): Contains AutoHotkey.dll (http://www.autohotkey.net/~tinku99/ahkdll), AutoCorrect (http://www.autohotkey.com...otstrings.htm#AutoCorrect), source code, miscellaneous utilities, and other versions of AutoHotkey.
|
skwire - How did you insert that cool scrolling text box on the forum? I tried to figure out how to do that, and just used a table to set my example apart.
|
|
|
|
|
8
|
DonationCoder.com Software / Finished Programs / Re: IDEA: Copy selection on webpage as text with text hyperlink URL's and ASCIIart
|
on: March 27, 2011, 05:04:12 PM
|
Are you familiar with AutoHotkey? If so, here's a way to do it with AutoHotkey that seems to work pretty well. It uses F2 as a hotkey which will only be active if a Firefox or Chrome window is active. You can change the hotkey to whatever you like. Also, you may have to play around with the sleep values a bit if it doesn't work right for you immediately. I have heard of AutoHotkey, but have never used it. This may take me a little time to figure out how to use. I first went to the website and wasn't sure which version to download, so I started with the first one, AutoHotkey_L. I ran the install, and started it, but I obviously need to read more of the documentation on how to load up your script since there is no command prompt or GUI to interact with. I am guessing it has already loaded a default script and I interact with it through hotkeys? After I figure out how to use this program and your script, I will be able to try it. Thank you for the script, and encouraging me to use AutoHotkey. Hopefully I will get it working soon.
|
|
|
|
|
13
|
DonationCoder.com Software / Finished Programs / DONE: Copy selection on webpage as text with text hyperlink URL's and ASCIIart
|
on: March 23, 2011, 04:28:50 PM
|
|
Often I like to copy text from a webpage into a text editor. When I copy hyperlinked text in a browser, I loose the URL when copying to text, and must go back and manually copy the link, then place it next to my text in my text editor.
I would like a utility that will do this for me automatically when I copy and paste from a web browser to a text editor.
As I was thinking about requesting this, a secondary thought came to me, which is silly but I suppose it could be entertaining, would be to additionally convert the images contained in the selection of text on the web page to ASCII art text when pasting to the text editor. The ASCII art dimensions should not be too large as to overwhelm the text in the editor, and the ASCII art images should be placed in the text relative to where the images were positioned on the web page. The ASCII art should be an optional feature.
|
|
|
|
|