I don't know dialogs yet but here's a way to get the output and echo to an @win
Maybe this will help...
If Perl Program is c:\perl\perl.exe
and you use switches -abc
and perl script is c:\scripts\script.pl
Use in mIRC:
alias perl {
;First clear the clipboard:
clipboard
;Then run script and copy output to clipboard:
run c:\perl\perl -abc c:\scripts\script.pl $chr(124) clip
;Then you can use a timer to check the clipboard every 2 secs. then call alias to copy output to @win
.timerperl 0 2 if ($cb(0)) perl.out
}
alias perl.out {
.timerperl off
if (!$window(@perl.out)) window @perl.out
var %a = $cb(0),%b = 1
while (%b <= %a) {
echo @perl.out $cb(%b)
inc %b
}
}