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!