thanks for the idea. ungetc and ungetch only help me to stuff a key back into the keyboard. i understand that you have to use getch or getche the character before you can ungetch it.
let me make it clearer. i have a mail program which keeps checking the outbox. if there is a msg, it transmits it. I have a small program which generates mail. now the mail transmission program needs a key combination of ctrl+shift+h to begin transmitting the mail immediately. if this key combination is not given, it will check at the end of a preset time loop. i want to modify my mail generating program so that the ctrl+shift+h combination is stuffed into the keyboard buffer by my program as if it has been entered by the user at the keyboard.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.