How can I simulate key presses and mouse clicks through code?
I'm using Visual C++ and I'm making a Win32 application
NOT (!) using MFC.
I know of the SendInput(.......) function that is supposed to do this.
However, when I add it to my code and compile I get an error saying SendInput() is an unknown function although I included the header file for this function that was specified in the MSDN documentation.
Is there another function I can use to do this or can anyone get the SendInput function to work?
Last option - if anyone knows how to do this using MFC and no other way, please tell me.