Print Page | Close Window

Capture the "Print Screen" key

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19953
Printed Date: 29 March 2026 at 9:49am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Capture the "Print Screen" key
Posted By: megetron
Subject: Capture the "Print Screen" key
Date 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.
 
 



Replies:
Posted By: gölge
Date Posted: 19 May 2006 at 9:51pm
the keycode of the printscreen is 44


Posted By: megetron
Date 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?


Posted By: Praveen
Date Posted: 21 May 2006 at 2:35am
Try event.KeyCode option!

-------------


Posted By: dpyers
Date 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.


Posted By: gölge
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net