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.
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.
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks, and yes, you were correct. Is there a website that lists all the key codes, just out of curiosity?
http://www.cambiaresearch.com/cambia...charcodes.aspx
I usually just use xev(1)
/EDIT: I was wrong. X apparently uses different keycodes to Javascript. Stick with the site OR create a page:
and press any key on it.Code:<html><body onkeydown="window.alert(event.keyCode);"></body></html>
It's actually 44.
Last edited by Twey; 09-29-2005 at 07:02 PM.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks