I am having trouble with Robot recognizing any kind of custom control in my application. For example, I have a custom tree view control and when I map it to the given tree view object, the items can still only be recognized by coordinates. That is, I tried using ItemText and it doesn't work.
Is anything else I can do to at least get the items in my tree view to be recognized by name rather than just coordinates.
You have to use one of more possible ways of injecting your code into another process. I use hooking method.
1. create DLL with export function, which you'll call from your script
2. in DLL you have to hook to the process of testing app using function "SetWindowsHookEx". Function which will be parameter in function "SetWindowsHookEx" will run in process of testing app therefore you have to use global variables
3. you have to have source code of control about which you want to find out some info