July 25th, 2011, 02:44 PM
How to send inputs to a minimized program
Hi i am trying to send both mouse and keyboard inputs to a minimized directx program so i can continue working on my comp whilst sending inputs to the program.
I have looked around and i think i need to get the process id of the program i want to send the input too and then use P/Invoke and SendInput (http://www.pinvoke.net/default.aspx/user32.SendInput) to send the input.
However, for this it says it sends input to the currently active window and i want it to go to a hidden window. Can you please tell me how i would go about doing this and point me to any sites that may help?!
Thanks in advance!
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!