Disabling Scroll Lock 
by Lee Calcraft

This program demonstrates the use of two procedures. PROCscrollfix disables the Scroll Lock and Num Lock keys by installing a machine code routine which turns Scroll Lock off and Num Lock on once a second. PROCscrollfixoff removes the routine, allowing Scroll Lock and Num Lock to be used.

The routines are designed to be incorporated into your own programs. The demonstration program supplied here calls PROCscrollfix, prints the numbers from 1 to 1000, then calls PROCscrollfixoff. If you press Scroll Lock or Num Lock, the effect will be cancelled within one second.

Note: You must remember to call PROCscrollfixoff before your program terminates (whether normally or due to an error, e.g. Escape). If the code is overwritten (e.g. by loading another program or returning to the Desktop), the machine will crash the next time the routine is called (i.e. within one second).
