ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Copy selection on webpage as text with text hyperlink URL's and ASCIIart

<< < (4/8) > >>

skwire:
My snippet should work with any flavour of AHK.  All you should need to do is copy out the snippet to a <something>.ahk file, edit the hotkey if you want, save and run then run the .AHK file.

Nater:
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/~Lexikos/AutoHotkey_L/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/download/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/~fincs/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/download/OtherDownloads.htm): Contains AutoHotkey.dll (http://www.autohotkey.net/~tinku99/ahkdll), AutoCorrect (http://www.autohotkey.com/docs/Hotstrings.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. 

skwire:
When I copy and paste them into a text editor from the browser, I am expecting something like this:
[SNIP]-Nater (March 27, 2011, 11:38 PM)
--- End quote ---

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.

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. 
-Nater (March 27, 2011, 11:38 PM)
--- End quote ---

I used the AHK code highlighter.  It's available from the Code Highlighting drop-down list when writing a post/reply.

Nater:
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.
--- End quote ---

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?

Renegade:
I had to add another Sleep between the ^c and Clipboard get:-Ath (March 27, 2011, 05:08 AM)
--- End quote ---

Yep, and that's exactly why I mentioned it.  The clipboard is a fickle beast and working with it can be a right pain in the arse.  I'm glad you got it working.   :D
-skwire (March 27, 2011, 08:37 AM)
--- End quote ---

In MS Excel if you repeatedly press CTRL + C it will tell you that another application has the clipboard and deny access with a warning. It just can't keep up with itself. Related odd fact.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version