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-
