Jump to content

How to use IAccessible method with AutoIT


Recommended Posts

I get the IAccessible by "AccessibleObjectFromWindow"

and the Properties can be shown directly

$c = AccessibleObjectFromWindow(.....)

ConsoleWrite($c.accName & $c.accChildCount)

it works

The functon accDoDefaultAction also work directly

$c.accDoDefaultAction()

Now, I just want to call the get_accXXXX method, they are all not work, why

such as

$c.get_accName()

The important method for me is the "accLocation"

How to use the "accLocation"?

Link to comment
Share on other sites

Read about dual interfaces to understand why you can or can't.

...AutoIt natively supports only IDispatch interface. That means if your objects' methods are available through IDispatch::Invoke you can access them, if not then you can't.

However, there is that AutoItObject thing. You can use it to access almost any interface. Even non-IUnknown.

AutoItObject really extends the capabilities of AutoIt. It's wrong to ignore it. That goes not only for you.

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

AutoItObject really extends the capabilities of AutoIt. It's wrong to ignore it.

Sounds like a mamma tell'n you why her two year old is a bonafide genius, don't it?

:idea:

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

It's something else.

Recently reanimated un-holy creation then? (I picture Buttercup yelling "It's ALIIIiiiive! Muahahaha!")

:idea:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...