Sign in to follow this  
Followers 0
laginfo

Nature of the "Instance" value

5 posts in this topic

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

Share this post


Link to post
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...

...???

Share this post


Link to post
Share on other sites

I don't think there even is an instance object, and if there is it should be here

I don't know how the Devs get these numbers, but it could be possible that they just enumerate the controls and assign their own instance numbers.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0