I want to set up text in edit box programatically in other program, which is a game app and using directX, but running in window mode. I\'m doing this:
HWND
Look for the source code to Autoit.
Autoit is able to send keys/mouse to just about anything.
When newer versions of Kaspersky Anti Virus are installed, it messes with SendMessage|SendInput type things between processes.
Edit: For the folks who point out that Autoit is a huge lump of code to dig through to accomplish this task:
Autoit is able to send input to background apps that do not want to see injected input. It is not a trivial task easily done. There are games out there that do not want to see any scripted input of any form and they go out of their way to prevent it. Also, there are AV solutions in the wild that block inter-process input injection. Autoit somehow works around the blocks in a lot of cases.