mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 20
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Feb 2003
Posts: 20
this doesnt seem to work, can it?
Code:
on 1:INPUT:#:{
  if (($inpaste == $true) && ($cb(0) > 1)) {
    pclipbrd $chan
    halt
  }
}

pclipbrd is an alias that does a slow paste (borrowed from invision )

or anyone have something else that would stop yourself from accidently or purposely pasting a bunch of lines at once

Joined: Feb 2003
Posts: 20
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Feb 2003
Posts: 20
Just had another idea. Something like

on 1:text:#: if ($nick == $me) && (%lines == $null) {
set %lines 1
else if ($nick == $me) && (%lines >= 1l) {
inc %lines
blah blah blah
}

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The problem with that code is that mIRC doesn't allow $cb to be accessed while pasting, which as you've discovered removes much of it's functionality. I think I made a bug report about this a while back but I don't think there was ever a 'proper' reply or acknowledgement of it.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard