Is there a way to force a key press in C?
I have a program running that requires a key press to activate. I need to press Ctrl+Alt+T. Is there a way to force those keys with a C program?
The original thread is here if this clears things up or if there is a better solution: http://www.codeguru.com/forum/showthread.php?t=459599
Thanks
Re: Is there a way to force a key press in C?
Quote:
Originally Posted by Tineras
I have a program running that requires a key press to activate. I need to press Ctrl+Alt+T. Is there a way to force those keys with a C program?
Not portably. The 'C' language knows nothing about keyboards or keys. All of that functionality is provided for by the OS and the system libraries provided by the OS.
So specify the OS you're using.
Regards,
Paul McKenzie
Re: Is there a way to force a key press in C?
Nevermind this post. We came up with another solution.