DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Finished Programs => Topic started by: noutters on May 10, 2007, 01:16 PM

Title: Copy-paste with the right text format
Post by: noutters on May 10, 2007, 01:16 PM
Ever had this annoying problem when copy-pasting text? The text you write sometimes looks in the end like a mix of fonts, font size, etc...
Something like : "Show recent posts (full text display). Show recent topics."
You have then to select everything and select your font, font size, etc...  >:(

I have coded an application that cleans your copied text of all format. The text you paste adopts the style of the text already written  :-*
An option permits to remove line-breaks and glues the words that are cut at the end of a line (very useful when copying from a PDF)

This app is coded with Autohotkey and available for download at http://www.autohotkey.net/~noutters/Clipboard2PlainText.exe
Right click the tray icon for options.

Ask if you want the original script.

Enjoy!  :Thmbsup:
Title: Re: Copy-paste with the right text format
Post by: mouser on May 10, 2007, 08:43 PM
nice  :up:
Title: Re: Copy-paste with the right text format
Post by: lanux128 on May 10, 2007, 09:10 PM
good job, noutters.. :up: the script will come in handy, i'm sure.. btw, if you don't mind, can i have a look at the AHK script? this is because i have my own AHK script into which i shoehorn all kinds of script that i need instead of running them separately.. :)
Title: Re: Copy-paste with the right text format
Post by: noutters on May 10, 2007, 11:48 PM
Here is a link to the AHK source:
http://www.autohotkey.net/~noutters/Clipboard2PlainText.ahk
Title: Re: Copy-paste with the right text format
Post by: nogojoe on May 26, 2007, 04:32 AM

Just what I needed   many thanks.  :Thmbsup:
Title: Re: Copy-paste with the right text format
Post by: cnewtonne on May 26, 2007, 07:05 AM
I was struggling with this issue for ages myself. In addition to what you described, I wanted a solution that allows you to do ...
- create a text styles (saved font color, size, indentation, ...etc)
- apply any of these styles on existing text.
- Save text snippets in RTF format including images and be able to retrieve them with hotkeys.

I could not do it using MacroExpress. I knew it was possible with AutHotKey, I just did not want to spend time learning the syntax. I eventually did it with Perfect Keboard, and it works just fine.

But I do urge you or even Mouser to develop such a tool that allows you to do all of the above.
Title: Re: Copy-paste with the right text format
Post by: Coffman on January 05, 2008, 03:33 PM
I realize this post is a little outdated but I thought I would throw out one more possibility - PureText by Steve Miller.  This is a handy little utility that runs in the taskbar notification area and can be assigned to a specific key.  When used, it will copy the text as plain text.  It is extremely useful for developers who use IDEs that have special formatting. 

http://www.stevemiller.net/puretext/
Title: Re: Copy-paste with the right text format
Post by: lanux128 on January 05, 2008, 07:55 PM
thanks for the tip but PureText (https://www.donationcoder.com/forum/index.php?action=search2;search=PureText) has been mentioned several times before.. :)