Jump to content

Recommended Posts

Posted

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

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

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