How do use SendMessage to write into another app's window.
Posted on 2006-06-14
I have a script that I've used to write text into the window of another application. By using the FindWindow and FindWidowEx api funciton calls, I was able to get that window's handle and then use the SendMesage function to actually write into it. I want to do the same thing but write to a window of another application. The problem I'm having is that I don't know the window hierarchy of this app so don't know which window this is a child of. Is there any way to determine all of the children of a particular window and how to I access the handle of each?