Sign in to follow this  
Followers 0
VMan

control ID are the same in same dialog??

2 posts in this topic

Hi, pretty new at this so I apologize if this is silly

I'm noticing with Au3info when looking at a file open dialog ( it's coming from my own app I'm using an MFC CFileDialog ) that the control ID of the SysListView32 is the same as the Control ID of the Open button... in the same dialog. This is frustrating as I am generating my own script programatically (e.g. recording events in my own app) and I was counting on making my scripts more robust using control IDs (which are the same as my resource IDs) rather than mouse positions.

Is there a way to programatically derive the classnameNN value?

Or... how would I call ControlClick without using classnameNN when the control IDs are the same?

Thx,

Vincent

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

ClassnameNN is just the CLASS appended with the instance number. So "SysListView327" would be "[CLASS:SysListView32; INSTANCE:7]".

See "Controls" in the help file.

;)

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

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