How do you program C keyboard output to kind of press the keys for you?
The answer to this will be platform and implementation
dependent. For Windows machines, look into the keybd_event
function: VOID keybd_event( BYTE bVk, // virtual key code BYTE
bScan, // hardware scan code DWORD dwFlags, // special flags PTR
dwExtraInfo // whether the key is pressed or released );