View Full Version : "Home Hotkey" script - button value help?
Xadious
08-16-2002, 12:59 AM
Hi there.
Is anyone familiar with the home hotkey script found here:
http://www.dynamicdrive.com/dynamicindex5/button1.htm
If so, what is value of the "var hotkey" supposed to be, if i wanted to make the "Print Screen" button the hotkey script activater?
Thanks in advance:)
glenngv
08-16-2002, 02:11 AM
copy this code and run it in IE, then press Print screen to find the corresponding code.
<html>
<body onkeypress="alert(event.keyCode)">
</body>
</html>
Xadious
08-16-2002, 02:41 AM
That works with most of the buttons:thumbsup:, but unfortunatly its not working with the Print-Screen button :(
Is there any other way i can find the Print-Screens keycode value?
Thanks in advance
glenngv
08-16-2002, 02:52 AM
try onkeydown instead of onkeypress
<html>
<body onkeydown="alert(event.keyCode)">
</body>
</html>
Xadious
08-16-2002, 03:06 AM
Nearly every single button works, except for Print-Screen :(
Is there anything else i can do?
A1ien51
08-16-2002, 05:22 AM
The print screen key has no value, you can not capture it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.