I've got a program which receives instructions from an IR remote, and I
would like to pass those instructions on, as keystrokes, to a specific
window*. But although I did find several "its easy to do in Python" and
"this is how you create a keylogger" references, I could not even find a
lead to how to do it in C / C++ **.
*Ultimatily I would check what the active app is, and from it select the
instruction-to-keystroke mapping in my program. (I've also encountered LIRC,
but I've not seen any info in regard to either sending the learned "keys"(?)
to an app or doing dynamic translation).
** I found several commandline tools, but that doesn't really help (shelling
from my program to external tools is not really my thing).
does anyone know how to "sendkeys" in C/C++ to a GUI app.
4 years ago