Send Message to other Apps

Hello,

I want to create console app where I for example type some text and send it to another application...
I know how to send keys to notepad but in my case the other app has Listbox, tabs, textbox, richtextbox and a Button, so how can I focus textbox and then send text to that textbox ?

Or is there another way to avoid console app trying to focus a textbox ?
You need to find out the Window handle of the textbox - with WinSpy or similar prog- and then you can use SendMessage with WM_SETTEXT.
Thank you very much.
WinSpy is what I was looking for.
Topic archived. No new replies allowed.