Hi!

I just discovered the COM Objects feature for mIRC and wanted to use it for some sort of "computer" stats script using the WMI (Windows Management Instrumentation) to retrieve my computers hardware infos. I've done it before with Perl and PHP so I know the code to port.

Here's an extract (for mIRC):

/sysinfo {
/comopen Locator WbemScripting.SWbemLocator

if ($comerr) {
/echo comopen failed
halt
}

; .result returns 1

/echo -a $com(Locator, ConnectServer, 3, dispatch* Services)

; echo returns 1, so it worked, and created a new $com object, "Services", as the help file specifies.

/echo -a $com(Services, Get, 3, string, Win32_Processor='CPU0')

; returns 0 frown
; and: No such Com 'Services' open

/comclose Locator
}

$com(Locator).result gives me 1080####

$com(Locator).dispatch returns $true (by the way, it always return true, with or without the dispatch* Services args).

What's wrong with the retrieved pointer called Services ?

Thanks!