I want to send message to the component which has focus from my application(running in background). But in some cases, I don't know how to get their handle. (Especially for web page component).
For example:
- Windows 10 calculator:
I want to automatically input some numbers into it using my application - Chrome, open
www.google.com
:
I want to automatically input something into its search inputbox - open
cmd.exe
:
I want to automatically input some cmd
The only thing I know is the handle of the main window (can be obtained by spy++). But for the applications above, EnumChildWindows
return 0 child.
Is there any solution?