How to disable Shift F10.

All other questions.

How to disable Shift F10.

Postby Support » June 29, 2010, 1:25 am

HOW TO from Robert Kirchhof:

I saw on the forum where somebody was trying to disable Shift F10.
So that his users could not revile the source code. Here is a solution.

-!-- ----- ExeScript Options Begin -----
ScriptType: window,invoker
DestDirectory: temp
Icon: default
CompanyName: Robert Kirchhof
FileVersion: 1.0.0.1
LegalCopyright: Robert Kirchhof
ProductVersion: 1.0.0.1
----- ExeScript Options End ----- ---
-HTA:APPLICATION
APPLICATIONNAME='KeyDisable'
SCROLL='no' SINGLEINSTANCE='yes'-
-head-
-script language='JavaScript'-
document.write(' ')
function Stopkey()
{ var Stopkey=window.event.keyCode; var shift=window.event.shiftKey; // change F10 to F12
if (shift && Stopkey==121)
{ alert('Sorry, this key combination is not allowed.'); event.keyCode=123; event.returnValue=false; }
}
-/script-
-/head-
-BODY onKeyDown='javascript:return Stopkey ();'
-body-
Support
 
Posts: 288
Joined: June 20, 2004, 8:27 am

Return to Other



Who is online

Users browsing this forum: No registered users and 1 guest

cron