I am working on an object which is using interfacing with an IBM Mainframe. To confirm inputs is used either Ctrl ("{CTRL}") or NumPad Enter ("{Enter}"). While both of these works just fine while the mainframe window is in focus, they do not work if any other window is the one in focus.
E.g. if you press "Run" in the Object Editor, the editor will become gain focus, and Global Send Keys Event no longer works. This can be countered by manually clicking the mainframe window to regain focus, but this seems somewhat silly.
Is there anyone who knows a way to get Global Send Keys Event to work on an IBM Mainframe, regardless of whether or not it is the focused window?