I don't think there's any documented way to trigger the OS's Print Screen functionality programmatically. I do have a few ideas you could try:
- Implement the copy-to-clipboard functionality yourself, or
- Once your hotkey has been triggered, temporarily unregister the hotkey and use
SendInput()
to resend the key press (this is admittedly a bit kludgy), or - Drop the hotkey method altogether and instead register a clipboard viewer using
SetClipboardViewer()
etc.
To me the last idea seems the best - you'll get notified when the clipboard contents change and then it's easy to see if the format on the clipboard is an image or not.