KRaN's Code Buddy

By kranix on May 13, 2004

ever wanted to recieve a quick piece of script through a pm, but with the timestamps, its kinda hard to copy it to an editor afterwards?

Well no more, with the below tool, if someone wishes to send u code they simply the code in the same format as on these forums and it is automatically sent to a window without time stamps and every thing else.

from that window u can then copy and use as actual code for mirc.

on *:text:

:?: {
set %codepaste. $+ $nick 1
if ( $window( @Code $+ $nick )) {
//aline @Code
$+ $nick ---------- New Code line ------------------------------
}
}
on
:text:

:?: { 
  set %codepaste. $+ $nick 0
}
on *:text:*:?: {
  if ( $($+(%,codepaste.,$nick),2) == 1 ) {
    if ( !$window( @Code_ $+ $nick )) {
      //window -n @Code_ $+ $nick
    }
    //aline @Code_ $+ $nick $1-
  }
}
on *:CLOSE:@code_*: {
  unset %codepaste. $+ $gettok($target,2,95)
}

Comments

Sign in to comment.
DeathfireD   -  May 18, 2004

very nice snippet

 Respond  
kranix   -  May 15, 2004

any suggestions on improvements?

 Respond  
kranix   -  May 15, 2004

ony thing missing was a way to seperate seperate codes, now if the code window already exists, and someone sends another code, a dividor is automatically created.

 Respond  
oX   -  May 15, 2004

This is a very good idea, I like this add-on because if your away, you can easily get a code from a friend. Kind of works like a pager also.

 Respond  
bl4h   -  May 15, 2004

actually thats a pretty good idea. many times this could have came in handy. /applaud kranix

 Respond  
kranix   -  May 14, 2004

aaaww no comments, i know this is real simple but its my first public script sommone comment on it plz :)

 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.