Usage: //echo -a $console(CMD) ; where CMD is valid input for a command console.
Example: //echo -a $console(ipconfig /all)
Notes:
1) Information returned is delimited by $crlf which allows for mIRC to return all of the information on one line as opposed to a consoles method of returning information on multiple lines.
alias -l stdout {
noop $com($flag(2),status,3)
if ($com($flag(2)).result) {
.timerstdout off
while (!$com($flag(3)).result) {
%consoleoutput = %consoleoutput $null($com($flag(3),readline,3)) $com($flag(3)).result $+ $crlf
noop $com($flag(3),atendofstream,3)
}
.comclose $flag(1)
.comclose $flag(2)
.comclose $flag(3)
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
/*
Usage: /console CMD ; where CMD is valid input for a command console.
Example: /console ipconfig /all
Notes:
1) Information echoed is delimited by $crlf which allows for mIRC to show all of the information on one line as opposed to a consoles method of returning information on multiple lines.