RE: [Request] Screen capture 04-26-2013, 08:05 AM
#21
The code I posted before was for creating the screenshot image. Registering (a word i0xIllusi0n should have used) a hotkey, is different. And aside from that, you could also just hook the keyboard to respond to a specific key if you don't feel like creating a system-wide hotkey for this. A keyboard hook is most likely the way I would choose to go. Others who suggest GetAsyncKeyState() are lazy, and use it for a quick alternative, but it will use more resources for the fact that it is NOT event based, and thus you will be constantly checking for the key itself, which still may not be 100% accurate, which seems unethical for all of the function calls it would require to allow it to work; inefficient...
-- cxS
[ Haskell/.NET/C/C++ - Software Engineer ]