Saturday, August 13, 2011
Executing keystrokes using TC?
Ok, I'm going to make the umption here that you have a Windows OS of some kind running. Good news is that it isn't your program, bad news is that you CANNOT intercept a keystroke that way and send it to another Windows application (the aforementioned Winamp, for example) because all Win32 applications get their messages from Windows ques. You have to write a Win32 compatible program in order to access these ques to message Winamp. Better to try and trap some character value directly in your program, uming it is a regular old DOS console that you're doing. As far as I know, Turbo C versions less than 3.X don't support any flavor of Windows directly. The URL below has a good tutorial on Win32 stuff, so if your compiler can do it, you can too.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment