mIRC Home    About    Download    Register    News    Help

Print Thread
#186064 17/09/07 12:22 AM
Joined: Sep 2007
Posts: 10
Z
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2007
Posts: 10
Is it possible to somehow, with DLL's or not, embed a Windows Command Prompt in a dialog? I'm trying to get my dialog to output the perl scripts I wrote.

Joined: Sep 2007
Posts: 10
Z
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2007
Posts: 10
Someone post something so I at least feel special. blush

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Don't bump posts. When someone has an answer, they will tell you. Answers can take 24-48 hours or more depending on the complexity of the question and whether or not people happen to be around. Bumping posts before 48 hours is not a good idea.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2007
Posts: 10
Z
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2007
Posts: 10
Sorry didn't know frown

Joined: Aug 2007
Posts: 72
P
Babel fish
Offline
Babel fish
P
Joined: Aug 2007
Posts: 72
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:
Code:
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
  }
}

Last edited by PhireCoder; 17/09/07 06:23 AM.

mIRC Scripting: So easy a caveman could do it.

Link Copied to Clipboard