mIRC Home    About    Download    Register    News    Help

Print Thread
on input + $cb #176580 11/05/07 07:57 PM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
when using $cb with on input, if we paste more than one line, $cb is not working

exemple : on *:input:*:var -s %a = $cb(0)

tested with mirc 6.21 and with simple editbox ( not multi-line )

Seems to be $lf the reason of the bug because when copy a line of the mirc script editor and paste it into mirc editbox, mirc send the line smile




Last edited by Wims; 11/05/07 08:45 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: on input + $cb [Re: Wims] #176866 15/05/07 02:29 PM
Joined: Oct 2003
Posts: 313
S
Sais Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
I cannot reproduce this....assuming I understand what you are saying.

If I copy and paste two lines, then I get a
Code:
* Set %a to 2

message, which is what I'd expect. Are you getting something different?

(I'm running 6.21, too)


Sais
Re: on input + $cb [Re: Sais] #176868 15/05/07 03:25 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
I get:

* Set %a to
-
* Set %a to
-
* Set %a to

This is an old bug that only happens on certain versions of windows, and even then it's not consistent. I use XP home, but Khaled was unable to reproduce it on that version of windows when I emailed him about it ages ago.

It seems mIRC is unable to access the clipboard during a pasting operation, but if you call an alias on a 0 second timer, it will work.

Re: on input + $cb [Re: hixxy] #176872 15/05/07 05:11 PM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
Yes but i think it should works on all version of windows,why the probleme will be windows ?


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: on input + $cb [Re: hixxy] #176899 16/05/07 02:53 AM
Joined: Jan 2004
Posts: 1,202
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,202
I've seen $cb(0) being NULL during $inpaste - in XP Home, under both mIRC 6.16 and 6.21.

The other situation I've found where $cb(0) is NULL happens during adding a large amount of text from certain .html pages, where it can often take several minutes before the text can be pasted. During the time period when nothing can be pasted, the $cb(0) is also undefined.

I had even made a timer to play a sound when $cb(0) changes from nothing into a number, so I would know when I could paste the text.