But I have applied your given code, but did not found any result. This Video Demonstration displays various ways in which you can send keystrokes, to find out how you. # in command prompt, type "pip install pynput" to install pynput. You need to get around that in whatever way you see best. Unfortunately there is no way to detect if the app element handles these messages because expectations on its result may vary a lot. Obviously, there is a way to do it through WinAPI, and the way . Solved How to Send Keystrokes to an Inactive Window System Events can only send keystrokes to the frontmost window, it cannot send keystrokes to a window that's in the background . Help with Postmessage, Sending keystrokes.. - elitepvpers Simulate keyboard events - Windows Forms .NET | Microsoft Docs There are tools to inject a keystroke to a window. After setting all these, pressing the 'Send Keys' button would activate the application matching with the Windows title and start sending keystrokes as someone is using a keyboard to that application. Specific Example: I want to send E and S (at the same time) to 3 applications in the background . The number 4 is pressed continuously and the SetTimer specify on what speed it will be press. To capture just one part of your screen, hit the Windows key + Shift + S to open a tool called Snip & Sketch, which allows you to click and drag . It doesn't affect the current application i am on, eg if i send keystroke "z" to background application, the active . Then reach out on social or join our stream and discord. send key strokes to a background application Because there is no managed method to activate another application, you must use native Windows .