P.S. usable from Linux(X11) and Windows, and only for amd64 cpu architecture.
P.P.S. surely windows users have access to tools that can do the same thing too... But this one works from Linux ! and already compiled to a single binary.
P.P.P.S. If for some reason it will be not working... visit issues in the used libraries. the program is simple as a brick. If smth is not working, then the issue is in a trillion GCC compiled stuff. I have nothing that is fixable on my side. Or if it will be not working for you, just use some alternative known for windows users or smth.
NOTE:
- The program asks you to release Ctrl-V as soon as possible right away after the its pressing to ensure it will working correctly (1 second time limit). And not pressing basically any keys while it is busy printing.
for convenience excluded its working in not Freelancer (or not Wine) windows.
it seeks for active window title to contain "Freelancer" or "Wine". env var TITLE_CONTAINS can override behavior for targeting any other window