What would be the easiest way to simulate pressing the control key in C++?
(make it press the button for you instead of having to manually press it on the keyboard)
Printable View
What would be the easiest way to simulate pressing the control key in C++?
(make it press the button for you instead of having to manually press it on the keyboard)
C++ or WinAPI?
C++, it would depend on the platform.
WinAPI, just send the WM_KEYDOWN message and fake out the app.
-Erik
Look at this FAQ.
Cheers
OMG thanks so much guys im making my friend an app and this will complete it :D