I have a Quickwin program that calls GETCHARQQ to read a keystroke. Unlike PEEKCHARQQ (which can only be used in console apps), it blocks execution until user presses a key. In certain program-determined circumstances, I need execution to continue without a user response. My idea is to have the program "put" a character into the keyboard "buffer" (perhaps not the right term) so that GETCHARQQ will respond and continue on its merry way.
Is there any way to do this? The nearest thing I can find is the API function SendInput. It looks like this is just what I need, but I am not enough of a C++ programmer to understand the documentation or how to implement it. Can anybody help?