mIRC Homepage
Posted By: Leif COM objects - retrieving custom data types - 12/02/08 12:31 AM
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!
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 ?
Do you have a link to the relevant documentation?
© mIRC Discussion Forums