Log in

View Full Version : Print Screen key



Servoc
09-27-2005, 04:37 PM
Does anyone know what the event key or hot key code is for the print screen key.

Yes, I am still trying to disable the print screen function, to prevent the less educated from being able to print images to file.

Twey
09-27-2005, 05:19 PM
You can not do this.
The print screen key won't even be detected by your script, or, if it is, it will already have done its task. It is hooked by the system long before it reaches the browser.
Watermark your images.

Oh, it's 111, by the way.

Servoc
09-29-2005, 06:28 PM
Thanks, and yes, you were correct. Is there a website that lists all the key codes, just out of curiosity?

Twey
09-29-2005, 06:52 PM
http://www.cambiaresearch.com/cambia3/snippets/javascript/reference/javascript_charcodes.aspx

I usually just use xev(1) (http://www.xfree86.org/current/xev.1.html)

/EDIT: I was wrong. X apparently uses different keycodes to Javascript. Stick with the site OR create a page:

<html><body onkeydown="window.alert(event.keyCode);"></body></html>
and press any key on it.

It's actually 44.