LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger when the "Print Screen" key is pressed

I am having touble triggering code when the "print Screen" key is pressed. I have managed to trigger on all the other keys that I am interested in. I used a combination of panel callbacks and checking for EVENT_KEYPRESS, this get most of the keys.

I also installed a windows message call back on the WM_KEYDOWN event, to get most of the other keys such as the Shift and Control keys. I looked for the VK_SNAPSHOT virtual key. But neither of these two methods respond to the "Print Screen" Key.

Thanks


0 Kudos
Message 1 of 2
(3,078 Views)
I'm pretty sure this is a 'special' key intercepted by the OS and not passed
onto the application. You can simulate pressing this key from a CVI prog
(I've done that for screen grabbing purpose), but I don't think you can grab
the key without hooking into some windows internals.
--
Guillaume Dargaud
http://www.gdargaud.net/
"It is bad luck to be superstitious."


0 Kudos
Message 2 of 2
(3,059 Views)