dear shmoove
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.
please help
thanks