Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 01:53:20 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Clipboard cleaner  (Read 3473 times)

dthatcher

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Clipboard cleaner
« on: September 25, 2007, 03:19:28 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: 36,421
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Clipboard cleaner
« Reply #1 on: September 25, 2007, 03:53:58 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,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Clipboard cleaner
« Reply #2 on: September 25, 2007, 07:37:27 PM »
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.autohotke...ds/StringReplace.htm


dthatcher

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Clipboard cleaner
« Reply #3 on: September 25, 2007, 08:02:46 PM »
Thanks alot!