Hey all,

Is there anyway to simulate a keystroke on the keyboard to an application? Previously, I've been using SendKeys(), but this only sends a keystroke to the window which is in focus. Is there any other command or API which allows you to send to a certain handle? Also if there is, Is there a way to return the hWnd of an app if I have the name of it?

Thanks in advance