Let's say there is an application which uses CreateWindow
/CreateWindowEx
with a custom class name, different then button
edit
etc. I want to be able to find this controls, so i can send them messages using SendMessage
. I tried to use FindWindowEx
but it is failed to find them. (It's simply returns, not finding any controls at all). How can i find this type of custom controls? I was thinking about bruteforcing with GetDlgItem
but i don't think it is gonna work very well. So i guess the only possible way here is to inject dll inside the target process, hook CreateWindow
/CreateWindowEx
to find those controls IDC, so i can later write them down, and use with GetDlgItem
? Is there any simpler solution? I already tried MSAA and UI Automatiation using the tools from win sdk (Inspector
). The window i want to automatiate is basically firefox popup modal dialog with MozillaDialogClass
. Here the screenshot of this window with Inspector
running on it: link
EDIT:
So basically the issue is: MSAA/UI Automatiation components Fails to find the controls inside the dialog that i showed above. I tried both and also tried spy++ it too fails to find the buttons, textboxes, checkboxes inside tihs dialog. Thats why i tried to find them using plain winapi FindWindow
+ FindWindowEx
. But same, no success!