Hello Paul,
This piece of code works for me:
keybd_event (VK_SNAPSHOT, 0, 0, 0); // Simulate button press.
keybd_event (VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0); // Simulate button release.
Check the
MSDN Library for more information on the keybd_event function.
Almost forgot this: don't forget to add the "#include <windows.h> " line on top of your code!
Success,
Message Edited by Wim S on 03-14-2007 06:22 PM