(view source code of lockrand.js as plain text)
var WshShell = WScript.CreateObject( "WScript.Shell" );
counter = 0;
do{rnd = Math.floor( 3 * Math.random( ) + 1 );
switch ( rnd ) {
case 1:
WshShell.SendKeys( "{CAPSLOCK}" );
case 2:
WshShell.SendKeys( "{SCROLLLOCK}" );
default:
WshShell.SendKeys( "{NUMLOCK}" );
}WScript.Sleep( 100 );
counter = counter + 1;
}while ( counter < 150 );
page last modified: 2025-10-11; loaded in 0.0076 seconds