mIRC Copy Clipper (/clip)

By raccoon on Jan 05, 2013

Quickly trim off timestamps and/or nicknames from clipboard contents after copying a selection of text from a chat buffer. Useful for copy/paste operations and cross-posting to multiple channels.

Usage: /clip [N]
Removes the first N words from each line of clipboard text.
If N is not specified, it will review the clipboard contents so you can preview it before pasting.

Example:

[12:34] Hey, I just saw this headline on Facebook. Looks like a crap storm!
[12:34] http://www.news.site/Russia-invades-Poland-Penguins-Revolt
[12:34] Time we started sending military support to the penguins
Type: /clip 2
Hey, I just saw this headline on Facebook. Looks like a crap storm!
http://www.news.site/Russia-invades-Poland-Penguins-Revolt
Time we started sending military support to the penguins

;Usage: /clip [N] -- Removes the first N words from each line of clipboard text.
/clip { ; by Raccoon 05-Jan-2013
  window -aeDz @clip | clear @clip
  var %i = 1, %n = $cb(0)
  WHILE (%i <= %n) { echo -i @clip $gettok($cb(%i),$calc(1 + $1) $+ -,32) | inc %i }
  if ($1) { 
    clipboard
    var %i = 1, %n = $line(@clip,0)
    WHILE (%i <= %n) { clipboard -an $line(@clip,%i) | inc %i }
} }

Comments

Sign in to comment.
illhawkthat   -  Jan 13, 2013

Interesting script. I made something like this that reminds me of this http://pastebin.com/u756wShi it's used to remove the timestamps from mIRC log files. Usage: /remstamp File

 Respond  
WorldDMT   -  Jan 05, 2013

if you dont want comments... dont post! :)
about /window -D what is -D switch??
i dont know if it can be useful

raccoon  -  Jan 05, 2013

When I post "Comment Reserved" that means I may edit and use the top-comment for updates and the like. I post that on all my snippets. Edit: Seems new threaded comments are posted in reverse order these days, so it may be obsolete behavior now.

/help /window -- You can use the -D switch on just about any custom /window to provide greater flexibility to the user. There is never a situation when you shouldn't use -D.

Also, you can change '-aeDz' to '-h' if you don't want to see the window.

Hawkee  -  Jan 05, 2013

Yes no need now. You can just create a new comment for it to appear on top.

Scakk  -  Jan 08, 2013

What does the -D do for /window exactly and how does it greater flexibility?

raccoon  -  Jan 08, 2013

It allows someone to right-click the window and set it to Desktop. Without -D, Desktop is always disabled by default. So always use -D unless you're lazy or it's hidden.

ProIcons  -  Jan 25, 2013

Well Hawkee, you should make The poster to be able to make Sticky Posts for updates and etc :D would be great think about it.

Hawkee  -  Jan 25, 2013

I was considering some sort of changelog feature that uses the threading system. I think this would be a good application of your idea.

Sign in to comment

raccoon   -  Jan 05, 2013

[Comment reserved]

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.