DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Clipboard cleaner  (Read 7,892 times)

dthatcher

  • Participant
  • Joined in 2007
  • *
  • Posts: 2
Clipboard cleaner
« on: September 25, 2007, 08:19 PM »
Hello! I am looking for a utility that will automatically strip a certain list of characters from text copied to the clipboard. For example, if I copy "A-123-456*567X", and I have "-" and "*" on my list of characters to strip, when I go to paste I would get "A123456567X".

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Clipboard cleaner
« Reply #1 on: September 25, 2007, 08:53 PM »
you could use my clipboard help+spell program and create a text formatting preset that would strip those characters and paste the stripped version when triggered from the popup hotkey menu.  though it might be overkill for the simple function you are looking for if you don't need anything else.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Clipboard cleaner
« Reply #2 on: September 26, 2007, 12:37 AM »
Autohotkey's StringReplace command could also come in handy.. here is something right off the help file:

Quote
;If clipboard contains - or *, remove them..
StringReplace, clipboard, clipboard, -, , All
StringReplace, clipboard, clipboard, *, , All
MsgBox %clipboard%

• http://www.autohotkey.com/docs/commands/StringReplace.htm

dthatcher

  • Participant
  • Joined in 2007
  • *
  • Posts: 2
Re: Clipboard cleaner
« Reply #3 on: September 26, 2007, 01:02 AM »
Thanks alot!

Original address: https://www.donationcoder.com/forum/index.php?topic=10133.0