mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2008
Posts: 1
L
Leif Offline OP
Mostly harmless
OP Offline
Mostly harmless
L
Joined: Feb 2008
Posts: 1
I'm trying to get data from DU Meter into mIRC via the COM object DUMeter.DUStopwatch . But the data I'm interested in is not a simple integer or double, it's a type called DUSample which is a class in the same COM object and consists of two long values (sent and recv). I've tried both a simple property get and a dispatch, there's no comerr but no data is returned and no dispatch object is created. Is it possible to retrieve this data when it isn't in a simple data type?

And actually if someone knows how to get this kind of data from WMI it would be even better, I've only found data of bytes/sec, but I want average bytes/sec over a few seconds (1-5) AND total number of bytes sent and received since last reboot.

Only if this is impossible with $com I'm willing to look at other options, such as dll's.

I hope someone knows something smile thanks!

Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
I indeed face the same issue:
Code:
alias dumeter { 
  comopen du DUMeter.DUStopwatch
  echo -a $com(du,RateCurrent,3,dispatch* dus) 
  echo -a -> $com(du).errorText $com(dus)
  comclose du
}


Might put this on Bug Reports ?

Last edited by Mpdreamz; 14/02/08 12:32 AM.

$maybe
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Do you have a link to the relevant documentation?


Link Copied to Clipboard