LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Wolfgang

Provide virtual key for 'Print Screen' key

Status: New

Hi,

 

Almost all function keys found on my keyboard have a corresponding keycode that can be used e.g. in FakeKeystroke () - except 'Print Screen'. It's not obvious why this one has been left out, it would be convenient to also have support for this key, e.g. for generating a screenshot or a printout.

 

Thanks.

2 Comments
gdargaud
Active Participant

I think the PrintScreen key is caught by the OS and not passed onto the user app. You'd be better off defining your own key and catching it in your panel callback. For instance I set Ctrl-P for printing with only a few lines of code. See the HandlePanelDefaultKeys() function example here.

 

Wolfgang
Trusted Enthusiast

Well, it IS possible to obtain screenshots, see this forum post from Nick. And why not support the PrtScr button if it is available and has an obvious meaning?