Detecting Screenshot Event

Everything else that doesn't fall into one of the other PB categories.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Detecting Screenshot Event

Post 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,
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
User avatar
idle
Always Here
Always Here
Posts: 6238
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Detecting Screenshot Event

Post by idle »

If you can block the message from being passed to windows
why not take the screen shot yourself?
Windows 11, Manjaro, Raspberry Pi OS
Image
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: Detecting Screenshot Event

Post by Olby »

I can but it would be more elegant if Windows did it. :oops:
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
User avatar
idle
Always Here
Always Here
Posts: 6238
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Detecting Screenshot Event

Post 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.
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply