Jump to content

Recommended Posts

Posted (edited)

Hey AutoIT! This is my second project in and I've modified a VBS Microsoft Update script and have it fully functional (bar Win8) but I was wondering how I can view the methods and properties of an object in AutoIT

Heres a few snippets of the code

$updSession = ObjCreate("Microsoft.Update.Session")

$updSearcher = $updSession.CreateUpdateSearcher()

These are fine, and I can view the methods for them online

$updSearchResult = $updSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0")

This will pass back the results from the Searcher object into a new object which can contain anywhere from 0 to well..however many updates MS have put out..

My issue is, further down the script we use

$updSearchResult.Updates.Count-1

I can't find a single entry online as to what other properties might be available in the returned object, and without it being pre-written in VB how would I have known to use ".Updates.Count" is there any way I can view the object in AutoIT?

Cheers in advance,

Martin

Edited by mpratley
Posted

I've now mooched around on the MSDN website enough to find the properties I'm looking for!

But for future reference, is this possible at all?

Regards

Martin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...