Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Capture the "Print Screen" key
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Capture the "Print Screen" key

 Post Reply Post Reply
Author
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Topic: Capture the "Print Screen" key
    Posted: 19 May 2006 at 7:35pm

Does anyone knows how to capture the "Print Screen" key?

I know that with javascript code I can capture all keys but failed to capture the print screen key.
 
 


Edited by megetron - 19 May 2006 at 7:35pm
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 9:51pm
the keycode of the printscreen is 44
Back to Top
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2006 at 11:30pm
I know, but still, no event reaching to the javascript's event when clicking on print screen.
 
Maybe do you have an example to capture this key please?
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 2:35am
Try event.KeyCode option!
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 6:24am
Don't forget that to capture a keycode for a web page, the browser has to have focus. If you clicked on the destop before you hit pa key, the browser won't capture the key because the desktop has the focus.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 3:57pm
you must write your code in key_up procedure,  the key_down procedure can not capture printscreen button.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.