mIRC Home    About    Download    Register    News    Help

Print Thread
#133582 22/10/05 08:12 PM
Joined: Oct 2005
Posts: 3
B
BLZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Oct 2005
Posts: 3
Hello, I'm wondering how to capture command output (like in aliases.)

Or rather more specifically, what I want to see text from commands like WHO to show in the active window, instead of only in the server-status window.

Thanks for any help.

-----
P.S. I also would like to know if theres a way to make output from chanserver/nickserv to stop going to the status window, as well as the active window, as it seems really unnessacary.

For example (when sending HELP cmd to chanserv, from chan window), in the status window I see this:
Code:
-
[08:54] -ChanServ- ChanServ allows you to register and control various
-
[08:54] -ChanServ- aspects of channels.  ChanServ can often prevent
-
...


While in the active window (a channel) I see this:
Code:
[08:54] -ChanServ- ChanServ allows you to register and control various
[08:54] -ChanServ- aspects of channels.  ChanServ can often prevent
...


Its the same thing, no need to have so many lines duplicated in the main status window...

Again, thanks for any help.

Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
on ^*:notice:*:*: {
echo -atg $+(-,$nick,-) $1-
haltdef
}

/help on notice

For a list of "on events" that you can use, try:

/help on

These often give examples.

Joined: Oct 2005
Posts: 3
B
BLZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Oct 2005
Posts: 3
Thank you. One more question, I've been looking through the help file but it seems be using $1- ($n-) doesn't preserve extra white space (understandable, becuase thats the delimiter for the $n args...

Is there any way to get the text as-is, with extra whitespace et al?

Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
I believe qwerty once made a $text identifier than substitutes 2 bold chars in between every double space, think it was something like this:

Code:
alias text var %i | return $(,,$regsub($mid($rawmsg,$calc(2+$pos($rawmsg,$chr(32),3))),/(?<= )(?= )/g,,%i)) %i


Then use $text in place of $1-

You can also use this $text alias for some other events too


Link Copied to Clipboard