[comp.lang.pascal] Num-Caps-Scroll Lock

valley@uchicago (Doug Dougherty) (11/20/90)

ts@uwasa.fi (Timo Salmi) writes:

>In article <1990Nov14.053813.990@vax5.cit.cornell.edu> hd7x@vax5.cit.cornell.edu writes:
>>In article <10264@uhccux.uhcc.Hawaii.Edu>,
>>swalker@uhunix1.uhcc.Hawaii.Edu (Sunny Walker) writes:
>>> I am a new programmer and was wondering if it is possible to change the state
>>> of the Num-Caps-Scroll Lock keys from a program, (id est, turn on/off Num Loc

>Yes.  And if you are using Turbo Pascal you can find the routines in
>/pc/ts/tspas22.arc, available by anonymous ftp or mail server from
>the archives uwasa.fi, Vaasa, Finland.  On the other hand if someone
>needs a programs that does this, you can find it in
>/pc/ts/tsutld18.arc.

>...................................................................
>Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
>School of Business Studies, University of Vaasa, SF-65101, Finland
>Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

Note that this (diddling with 40:17) is not entirely safe on some machines
(most notably laptops) where the keyboard itself keeps track of the
CAPS/NUM LOCK status, and poking the byte can get it all confused.