Jump to content

Nature of the "Instance" value


Recommended Posts

Hi,

Using the AutoIt v3 Window Info, I see the content of the Instance of an Edit control (example 12).

I should want to get this value by code (C or VB). Which is the API fonction(s) for that ? (I can know the handle of the parent window)

Thanks a lot if you can help me.

:D

Link to comment
Share on other sites

Maybe I have not told you well, because I'm surprsised you talk to me about this article : I'm not at the level of the thread or of the global windows of the application...

I have to get and select controls whose the classname is "Edit".

They are in a form which is itself a control whose the classname is "Static".

These controls are seen by AutoIt as follows :

Class : Edit

Instance : XX

ClassNameNN : EditXX

As an example :

Class : Edit

Instance : 01

ClassNameNN : Edit01

Class : Edit

Instance : 02

ClassNameNN : Edit02

And my aim is to select each one, using the only criterium that is different betwwen them : this "Instance" or ClassNameNN value.

But I don't know which API function can do that, because I don't know which is that "Instance" object...

...???

Link to comment
Share on other sites

Aoh ! Yes, it could be the right explanation !

And it gives me a new way to make my job : verify that the sequence is constant, and get the rank of each control in it !

Maybe it's the end of my quest ! In every way, thank you very much.

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