**Update: After speaking with a few developers it seems as though it is not possible to send the keystrokes to a third application that is not in the foreground which is needed as the target application will not usually be in the foreground.
In light of this I am open to suggestions as to how we can work around this. The target application is web based so maybe this can be done by creating an we app or wrapper or something that will allow it to receive keypresses in the background**
I have a USB switch with 3-4 buttons that I need an application that will listen for the USB switch to be pressed then send a specific keypress sequence based on the button pressed to specific processes running in windows.
The basic operation will be similar to the following;
1. User presses the USB switch connected to the machine
2. The application will then send a specific keypress (ie: Ctrl+Alt+Shift+P for switch 1, Control+Alt+Shift+Y for switch 2 etc...) to specified process or window names. I'd prefer to be able to specific processes as the window names may change but as an example, send the keypress to all running Chrome browser processes.
- Keypress needs to be configurable
- Destination processes/window names need to be configured
This may be difficult since you won't have the switch but I will help determining this through remote sessions with the hardware connected.