News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Difficulty using Print Screen key

Started by raleep, December 27, 2012, 06:26:05 PM

Previous topic - Next topic

MichaelW

On my Windows 2000 system the Print Screen key generates only a WM_KEYUP message with wParam = VK_SNAPSHOT. Is this not enough to trap the key?
Well Microsoft, here's another nice mess you've gotten us into.

Vortex

Hi MichaelW,

You are right. Detecting the WM_KEYUP message with wParam = VK_SNAPSHOT is doing the job. I attached an example. Hitting PRINT SCREEN while the window is active will display a message box. ( see the attached example )

dedndave

this seems simple enough   :P

warning: you won't here a beep under vista - too bad, so sad

Magnum

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

oops   :P
you caught me

i didn't filter out the shift-key cases
easy to do, though

Magnum

The PrtScr key doesn't work on IBM Thinkpads like it does on most other computers.

It takes hitting a key labelled fn + PrtScr/insert to save an image.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

Tedd

Quote from: Magnum on December 28, 2012, 08:33:31 AM
The PrtScr key doesn't work on IBM Thinkpads like it does on most other computers.

It takes hitting a key labelled fn + PrtScr/insert to save an image.

This is normal for laptop keyboards. To reduce their size, some (hopefully lesser used) keys are escaped by the Fn key. So, Insert/PrtScr is the Insert key by default, but can be transformed into the PrtScr key via Fn.
Potato2

Magnum

I miss the extra number keys.

I like to make some of the extended ascii characters on occasion.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

you might write a little program to show the ibm graphics char set (OEM_CHARSET)
then - pick one and it puts it into the clipboard   :P

Tedd

Quote from: Magnum on December 30, 2012, 04:15:00 AM
I miss the extra number keys.

I like to make some of the extended ascii characters on occasion.
NumLock activates the number keypad - notice the letter keys on the right also have numbers?
Then you can just hold alt and enter a character number, as usual.

Of course, a tray icon with a popup palette to select characters would be nicer..
Potato2

dedndave

you could probably get the handle of the window that has keyboard focus before you show the window
then - send WM_CHAR directly - no clipboard
i think we are well on our way to developing "the next big app"   :biggrin:

Magnum

I thin a big app would show the supervisor password for the BIOS chip made by a company that thought frustrating users is funny.  :biggrin:

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

get a rope !

actually, it is hackable
you should be able to boot up in DOS and dump the flash contents
one of the things about assembly language - if you know your way around, there are no secrets