Jump to content

Recommended Posts

Posted (edited)

Hi,

First , I don't know nothing about COM and I saw this script :

#include <MsgBoxConstants.au3>

Example()

Func Example()
    ; Error monitoring. This will trap all COM errors while alive.
    ; This particular object is declared as local, meaning after the function returns it will not exist.
    Local $oErrorHandler = ObjEvent("AutoIt.Error", "_ErrFunc")

    ; Create Internet Explorer object
    Local $oIE = ObjCreate("InternetExplorer.Application")
    ; Check for errors
    If @error Then Return

    $oIE.Visible = True ; set visibility

    ; Custom sink object
    Local $oIEEvents = ObjEvent($oIE, "_IEEvent_", "DWebBrowserEvents2")

    ; Navigate somewhere
    $oIE.navigate("http://www.google.com/")
    ; Check for errors while loading
    If @error Then
        $oIE.Quit()
        Return
    EndIf

    ; Wait for page to load
    While 1
        If $oIE.readyState = "complete" Or $oIE.readyState = 4 Then ExitLoop
        Sleep(10)
    WEnd
EndFunc
...

Now I want to know how can I find & list ALL those possible "functions" of a specific COM object ( those .Visible, .navigate, .readyState ... ), since I can't find those things nowhere listed  :blink:

Edited by Rickname
Posted

You need to check Microsofts Developer Network (MSDN).for the products Object Model Reference.

Do you want to work with IE or other MS products?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)
  On 7/11/2014 at 6:11 PM, water said:

You need to check Microsofts Developer Network (MSDN).for the products Object Model Reference.

Do you want to work with IE or other MS products?

No, I have to work with other object of an other program, and I need to retrieve all of that things, I dont' know how to call them, I just gived them as examples in the OP. So how can I find them all for a specific object ?

Edited by Rickname
Posted

Give this >COM object browser a try.

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Solution
Posted

Or this >Typelib viewer written by trancexx.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Trancexx will be glad to hear ;)

My UDFs and Tutorials:

  Reveal hidden contents

 

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...