G
Guest
Hi
I am developing scripts in C# which can be used to test windows based
applications. I use Win32 API's to perform click operations etc. To uniquely
identify a control in a window rather than using absolute position of a
control I have been using Control-ids and captions of the control. But I
found scenarios where the control-id was dynamic and the control didn't have
a caption. What I mean by caption is the text of the control. A control, say
a button can have both name and text - Name: btnOk and Caption: OK. What I
hoping to get is the Name "btnOk" that can uniquely identify it in a window
because no two controld can have the same name, but it can have the same
caption. I have searched through the Win32 API's and I have been able to find
a suitable API that does the job. Any kind of help will be appreciated.
Thanks a lot.
I am developing scripts in C# which can be used to test windows based
applications. I use Win32 API's to perform click operations etc. To uniquely
identify a control in a window rather than using absolute position of a
control I have been using Control-ids and captions of the control. But I
found scenarios where the control-id was dynamic and the control didn't have
a caption. What I mean by caption is the text of the control. A control, say
a button can have both name and text - Name: btnOk and Caption: OK. What I
hoping to get is the Name "btnOk" that can uniquely identify it in a window
because no two controld can have the same name, but it can have the same
caption. I have searched through the Win32 API's and I have been able to find
a suitable API that does the job. Any kind of help will be appreciated.
Thanks a lot.