Page 1 of 1

Detecting Screenshot Event

Posted: Sun Oct 30, 2011 12:10 am
by Olby
Hi,

I would like to receive screen print event and do some processing before the actual screen print is taken.
Something like: -> #IDHOT_SNAPDESKTOP/#IDHOT_SNAPWINDOW -> modify interface for the screen print -> return #True -> Windows takes screen print.
All I could do was to register a global hot key but then whenever my application is opened I receive the event but nothing happens afterwards. Is there a way to detect the event before and after the screen shot is taken without substituting windows screen print function with my own?

Thanks,

Re: Detecting Screenshot Event

Posted: Sun Oct 30, 2011 8:16 pm
by idle
If you can block the message from being passed to windows
why not take the screen shot yourself?

Re: Detecting Screenshot Event

Posted: Sun Oct 30, 2011 8:28 pm
by Olby
I can but it would be more elegant if Windows did it. :oops:

Re: Detecting Screenshot Event

Posted: Sun Oct 30, 2011 8:40 pm
by idle
maybe you should be using a low level keyboard hook instead
so you can get the message do what you need and send it back on its way.