Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for lockloop.js

(view source code of lockloop.js as plain text)

  1. var WshShell = WScript.CreateObject( "WScript.Shell" );
  2. counter = 0;
  3. do
  4. {
  5. 	WshShell.SendKeys( "{NUMLOCK}" );
  6. 	WScript.Sleep( 200 );
  7. 	WshShell.SendKeys( "{NUMLOCK}" );
  8. 	WshShell.SendKeys( "{CAPSLOCK}" );
  9. 	WScript.Sleep( 200 );
  10. 	WshShell.SendKeys( "{CAPSLOCK}" );
  11. 	WshShell.SendKeys( "{SCROLLLOCK}" );
  12. 	WScript.Sleep( 200 );
  13. 	WshShell.SendKeys( "{SCROLLLOCK}" );
  14. 	counter = counter + 1;
  15. }
  16. while ( counter < 25 );
  17.  

page last modified: 2024-04-16; loaded in 0.0191 seconds