So, I need to create a service that listens on a HTTP port for characters and then simulate pressing of that key, so it seems that the user has pressed the key himself, regardless of which application is in the front, and that application should accept it.
Can you do that and how would one do that? Thanks in advance!
edit: i have found this which grants the app, and I qoute "Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window. Without this permission, you can only deliver events to windows in your own process. Very few applications should need to use this permission."