mIRC Homepage
Posted By: Wims on input + $cb - 11/05/07 07:57 PM
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



Posted By: Sais Re: on input + $cb - 15/05/07 02:29 PM
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)
Posted By: hixxy Re: on input + $cb - 15/05/07 03:25 PM
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.
Posted By: Wims Re: on input + $cb - 15/05/07 05:11 PM
Yes but i think it should works on all version of windows,why the probleme will be windows ?
Posted By: maroon Re: on input + $cb - 16/05/07 02:53 AM
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.
© mIRC Discussion Forums