Results 1 to 4 of 4

Thread: Print Screen key

  1. #1
    Join Date
    Aug 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Print Screen key

    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.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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!

  3. #3
    Join Date
    Aug 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, and yes, you were correct. Is there a website that lists all the key codes, just out of curiosity?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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:
    Code:
    <html><body onkeydown="window.alert(event.keyCode);"></body></html>
    and press any key on it.

    It's actually 44.
    Last edited by Twey; 09-29-2005 at 08: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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •