PrtScn key

Hi there,

I might have asked this before, but due to unreasonable, unexplainable, unbearable, and under water reasons, I lost the answer. I want to use the PrtScn button, but do not seem to know what key to use for that. I tried PRINT, and PRTSCN, but none seem to work. Anyone any idea?

Cheers,
D.Kniep (uncontrollable)

dick writes:

I might have asked this before, but due to unreasonable,
unexplainable, unbearable, and under water reasons, I lost
the answer. I want to use the PrtScn button, but do not seem
to know what key to use for that. I tried PRINT, and PRTSCN,
but none seem to work. Anyone any idea?

You can trap it by binding EVT_KEYDOWN, it is KeyCode 321.

···

--
Paul McNett
Independent Software Consultant
http://www.paulmcnett.com

Paul McNett wrote:

dick writes:

I might have asked this before, but due to unreasonable,
unexplainable, unbearable, and under water reasons, I lost
the answer. I want to use the PrtScn button, but do not seem
to know what key to use for that. I tried PRINT, and PRTSCN,
but none seem to work. Anyone any idea?

You can trap it by binding EVT_KEYDOWN, it is KeyCode 321.

Which is the value of wx.WXK_PRINT. The problem that Dick is probably seeing is that the platform may be stealing that key event to implement a screen capture feature. For example, run the KeyEvents sammple from the demo and press PrintScreen. On my Linux box the KSnaphhot utility is launched by default and I never see the key down event, but I do see the key up.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Paul McNett wrote:

dick writes:

I might have asked this before, but due to unreasonable,
unexplainable, unbearable, and under water reasons, I lost
the answer. I want to use the PrtScn button, but do not seem
to know what key to use for that. I tried PRINT, and PRTSCN,
but none seem to work. Anyone any idea?

You can trap it by binding EVT_KEYDOWN, it is KeyCode 321.

Which is the value of wx.WXK_PRINT. The problem that Dick is probably seeing is that the platform may be stealing that key event to implement a screen capture feature. For example, run the KeyEvents sammple from the demo and press PrintScreen. On my Linux box the KSnaphhot utility is launched by default and I never see the key down event, but I do see the key up.

Thanks a lot guys, I will try this....

Cheers,
Dick