mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 3
H
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Jul 2004
Posts: 3
Hey guys.
I'm working on a script wich uses the @window.
My script will have some randon output in the @window.
How can I make the script send certain text from the @window to a channel?
eg: If the script in @window returns
"11 blabla"
"12 blibli"
"12 blibli"
"11 blabla"
Then how do I make the script msg my #channel the "blibli"?

Hope you guys understand my question and are able to help. Thanks.

Joined: Jul 2004
Posts: 19
S
Pikka bird
Offline
Pikka bird
S
Joined: Jul 2004
Posts: 19
you can use something like :

var %i = 0
while (%i < $line(@window,0)) {
inc %i 1
msg #chan $line(@window,%i)
}


Thinking is the worst disease of the brain.

To reply by mail, remove "nospam-" in my adress
Joined: Jul 2004
Posts: 3
H
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Jul 2004
Posts: 3
Thanks for the answer securix.

Let me try to be a little more specific.
My script does like LOTS of lines. And I want only a FEW to be msg to my channel.

[13:48:43] [vrf:::>] 500- complete calculation took 50ms.

The line above is copied from my @window.
I want my @window to msg the text after the "500-" to my #channel, how do I do this?


Link Copied to Clipboard