Copier of picture windows

By kerstt on Aug 31, 2007

Script Name:Copier of picture windows
Author: kerst
Script Description: Copies a picture in window1 to window2 starting from x y = 0 0, if you use copy -f it copies the complete window.

Script Version: 1.0
Written on mIRC version: 6.3

Release Notes: when using mirc might freeze a while, just leave it the loop will end in a few secs, also i tried saving it first in windows so that you can draw the pic at any moment, but windows can only hold 5000 lines :(, and didnt feel like using hash/ini/txt :P

alias copy {
  if ($1 != -f) {
    %t = $2
    %e = $1
    window -p %t
    var %y = 0
    while ($getdot(%e,0,%y)) {
      copy2 %y
      inc %y
    }
  }
  elseif ($1 == -f) {
    %t = $3
    %e = $2
    window -p %t
    var %b = 0
    while (%b <= $window(%e).w) {
      copy3 %b
      inc %b
    }
  }
}
alias -l copy2 { 
  var %x = 0
  while ($getdot(%e,%x,$1)) { 
    drawdot -r %t $v1 1 %x $1
    inc %x
  } 
}
alias -l copy3 {
  var %g = 0
  while (%g <= $window(%e).w) {
    drawdot -r %t $getdot(%e,%g,$1) 1 %g $1
    inc %g
  }
}

Comments

Sign in to comment.
kerstt   -  Sep 01, 2007

cause i was bored :)

 Respond  
Lindrian   -  Aug 31, 2007

Then why\'d u make this usless stuff lol?

 Respond  
kerstt   -  Aug 31, 2007

i knew about drawcopy im not retarded :)

 Respond  
Lindrian   -  Aug 31, 2007

Im sorry to turn you down on this one buddy, lol, but:

drawcopy -m @window 0 0 $window(@window).w $window(@window).h @window2 0 0
}

That will copy everything in @window to @window2, basically, everything ur aliases does, in one line :P.

 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.