NBenitus Posted June 8, 2009 Posted June 8, 2009 Hi all, I am trying to obtain the text of a control in the application I want to test. It is a list of elements, but there's no way I can guess the actual control name or ID from it. I read in the help files and found the ControlGetFocus command. The problem with that is that it returns a ClassNameNN, and not an actual control ID. That is why, when I use the following code, I can't obtain the control's text: ConsoleWrite(ControlGetText("mcsvmserver2", "", ControlGetFocus("mcsvmserver2", ""))) Any help would be really appreciated, B.
somdcomputerguy Posted June 8, 2009 Posted June 8, 2009 NBenitus said: I am trying to obtain the text of a control in the application I want to test..Have you tried the 'AutoIt Window Info' tool? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
NBenitus Posted June 8, 2009 Author Posted June 8, 2009 snowmaker said: Have you tried the 'AutoIt Window Info' tool?How neat ! Thanks a lot for the help !
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now