mIRC Home    About    Download    Register    News    Help

Print Thread
#101758 27/10/04 06:17 PM
Joined: Sep 2004
Posts: 129
W
Wragg Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
can mirc trhu scripts do same as netstat (connections to pc) but in @window or is limited only to connections to mirc ?

#101759 28/10/04 12:10 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
No, mIRC can't do that, but you can use an extenal DLL (like stdio) to launch netstats.exe and read its output and put it in a @window.

#101760 28/10/04 12:32 PM
Joined: Sep 2004
Posts: 129
W
Wragg Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
thanks for advice.

#101761 04/11/04 09:03 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Code:
 
alias netstat {
  write -c netstat.txt
  var %a = run $+ $ticks 
  .comopen %a WScript.Shell 
  if $comerr { return }
  if $com(%a,Run,3,bstr,cmd.exe /c netstat > " $+ $mircdirnetstat.txt",uint,0,bool,true) {
    .comclose %a
  }
  .comclose %a
}
 

then just play netstat.txt no dll needed


Link Copied to Clipboard