I am wondering if it's possible to use SendKeys only within the application, even if the application is not in focus. Any similar function to send keystrokes to the application could also work. I tried with SendMessage but if the program is not in focus it will not work. Any ideas?