how to disable print screen in windows xp or 7

how to disable print screen in windows xp or 7 to prevent users from taking snap shots for the important docs,thanks
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jackie ManIT ManagerCommented:
According to the comment of DarkXiphoid and LeeTutor, there are two ways to do what your want.

DarkXiphoid's comment:-

"you could disable the buttons


Just remap both keys (and all the other keys you like) to whatever you think is funny ;-)"

LeeTutor's comment:

"There is a free program you can download called AutoHotkey that you can use to automate many tasks in many different ways.  One of the things it does very easily is remap keys on the keyboard.  You download the program here:

After you install the program, you can read the documentation built into it to learn how to "program" the remapping of keys.  The scripts you create can be "compiled" into .exe files which can then be run at system startup by creating a shortcut in the Startup folder on the Start Menu.

This is a quotation from the builtin help file about remapping keys:

The syntax for the built-in remapping feature is OriginKey::DestinationKey. For example, a script consisting only of the following line would make the "a" key behave like the "b" key:


The above example does not alter the "b" key itself. The "b" key would continue to send the "b" keystroke

To disable a key rather than remapping it, make it a hotkey that simply returns. For example, F1::return would disable the F1 key."

i_harfoushAuthor Commented:
........To disable these functions all you have to do is register the hotkeys, which causes Windows to send your app a WM_HOTKEY message when the user presses either hotkey. Your implementation can ignore the message to bypass the default screen-capture behavior. A good place to do it is in your mainframe class.
the question is how??
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Steps to disable the print screen key:

1. Click Start, click Run, type "regedt32" (without the quotation marks),
and then click OK.
2. On the Windows menu, click "HKEY_LOCAL_ MACHINE on Local Machine".
3. Click the System\CurrentControlSet\Control folder, and then
double-click the Keyboard Layout folder.
4. On the Edit menu, click Add Value, type in "Scancode Map" (without the
quotation marks), click REG_BINARY as the Data Type, and then click
5. Type "0000000000000000040000002AE037E0000037E00000540000000000" (without
the quotation marks) in the Data field, and then click OK.
6. Close the Registry Editor and restart the computer.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Danny ChildIT ManagerCommented:
to expand on thsteph's (correct) solution:
copy the info below to a *.reg file:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,2A,E0,37,E0,00,00,37,E0,00,00,54,00,00,00,00,00
and then doubleclick it to install it.

and to re-enable it, copy this to a *.CMD file, and run that one!
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "scancode Map" /f

But this also assumes that the users can't install alternative packages, such as SnagIT or FastStone Capture (most excellent, btw).  

Also, to be utterly paranoid, there's not much you can do to block users taking pictures of their screens with cameras on personal mobile phones....
i_harfoushAuthor Commented:
dan it is not working should I restart the pc?
Jackie ManIT ManagerCommented:

After you edit the registry, it needs to restart XP to take effect.
i_harfoushAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.