DOS utility that controls Caps Lock & Num Lock keys 
Author Message
 DOS utility that controls Caps Lock & Num Lock keys

I'm looking for a DOS utility that controls the status of the "Caps Lock"
and "Num Lock" keys.   Does anyone know of one??


Sat, 20 Nov 2004 01:52:31 GMT  
 DOS utility that controls Caps Lock & Num Lock keys
    Bookie  wrote on 03.06.02, 19:52

B > I'm looking for a DOS utility that controls the status of the "Caps Lock"
B > and "Num Lock" keys.   Does anyone know of one??

----Debug-script: cut out and put it into a file-----------
n numlock.com
e 0100 E9 EC 02 00 00 00 20 20 20 20 00 6E 75 6D 6C 6F 63 6B 3A 20
e 0114 43 61 6E 6E 6F 74 20 72 75 6E 20 62 65 6C 6F 77 20 44 4F 53
e 0128 20 56 65 72 73 69 6F 6E 20 32 2E 30 30 2E 07 0D 0A 00 6E 75
e 013C 6D 6C 6F 63 6B 3A 20 49 6C 6C 65 67 61 6C 20 63 6F 6D 6D 61
e 0150 6E 64 20 6C 69 6E 65 2E 20 54 79 70 65 20 27 6E 75 6D 6C 6F
e 0164 63 6B 20 68 27 20 66 6F 72 20 68 65 6C 70 2E 07 0D 0A 00 0D
e 0178 0A 4E 75 6D 4C 6F 63 6B 20 73 65 74 20 24 4F 4E 0D 0A 24 4F
e 018C 46 46 0D 0A 24 0D 0A 4E 75 6D 4C 6F 63 6B 20 2D 20 4E 75 6D
e 01A0 6C 6F 63 6B 20 54 6F 67 67 6C 65 20 55 74 69 6C 69 74 79 0D
e 01B4 0A 0D 0A 55 73 61 67 65 3A 20 6E 75 6D 6C 6F 63 6B 20 5B 30
e 01C8 7C 31 7C 6F 66 66 7C 6F 6E 5D 0D 0A 0D 0A 20 20 20 20 20 20
e 01DC 20 45 69 74 68 65 72 20 64 69 73 70 6C 61 79 73 20 6F 72 20
e 01F0 73 65 74 73 20 74 68 65 6E 20 4E 75 6D 4C 6F 63 6B 20 6B 65
e 0204 79 0D 0A 20 20 20 20 20 20 20 74 6F 67 67 6C 65 2E 20 57 68
e 0218 65 6E 20 69 6E 76 6F 6B 65 64 20 77 69 74 68 6F 75 74 20 6F
e 022C 70 65 72 61 6E 64 20 74 68 65 0D 0A 20 20 20 20 20 20 20 63
e 0240 75 72 72 65 6E 74 20 73 74 61 74 65 20 6F 66 20 74 68 65 20
e 0254 74 6F 67 67 6C 65 20 69 73 20 64 69 73 70 6C 61 79 65 64 2E
e 0268 0D 0A 20 20 20 20 20 20 20 54 68 65 20 6F 70 65 72 61 6E 64
e 027C 20 27 30 27 20 6F 72 20 27 6F 66 66 27 20 73 65 74 73 20 74
e 0290 68 65 20 74 6F 67 67 6C 65 0D 0A 20 20 20 20 20 20 20 6F 66
e 02A4 66 2C 20 27 31 27 20 6F 72 20 27 6F 6E 27 20 73 65 74 73 20
e 02B8 69 74 20 6F 6E 2E 0D 0A 0D 0A 45 72 72 6F 72 20 4C 65 76 65
e 02CC 6C 20 72 65 74 75 72 6E 65 64 3A 20 20 20 30 20 20 63 75 72
e 02E0 72 65 6E 74 20 73 74 61 74 65 20 6F 66 20 74 6F 67 67 6C 65
e 02F4 20 69 73 20 6F 66 66 0D 0A 20 20 20 20 20 20 20 20 20 20 20
e 0308 20 20 20 20 20 20 20 20 20 20 20 20 20 31 20 20 63 75 72 72
e 031C 65 6E 74 20 73 74 61 74 65 20 6F 66 20 74 6F 67 67 6C 65 20
e 0330 69 73 20 6F 6E 0D 0A 20 20 20 20 20 20 20 20 20 20 20 20 20
e 0344 20 20 20 20 20 20 20 20 20 20 20 33 20 20 69 6C 6C 65 67 61
e 0358 6C 20 63 6F 6D 6D 61 6E 64 20 6C 69 6E 65 0D 0A 0D 0A 43 6F
e 036C 70 79 72 69 67 68 74 20 28 43 29 20 31 39 39 33 20 62 79 20
e 0380 52 69 63 68 68 65 69 6D 65 72 2B 52 69 63 68 68 65 69 6D 65
e 0394 72 0D 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
e 03A8 20 20 20 20 20 49 54 20 43 6F 6E 73 75 6C 74 61 6E 74 73 0D
e 03BC 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
e 03D0 20 20 20 43 48 2D 34 31 31 37 20 42 75 72 67 20 26 20 48 6F
e 03E4 72 73 68 61 6D 20 55 4B 0D 0A 24 B4 30 CD 21 A2 0A 01 3C 02
e 03F8 73 09 8D 36 0B 01 E8 59 01 CD 20 8D 1E 7D 05 B1 04 D3 EB 83
e 040C C3 11 B4 4A CD 21 8B C3 9C D3 E0 9D 8B E0 8B EC E8 6A 00 80
e 0420 3E 04 01 FF 75 0B 8D 16 91 01 B4 09 CD 21 EB 52 90 80 3E 03
e 0434 01 00 77 4A 8D 16 77 01 B4 09 CD 21 B8 40 00 8E C0 80 3E 05
e 0448 01 01 72 11 77 09 26 80 26 17 00 DF EB 07 90 26 80 0E 17 00
e 045C 20 26 F6 06 17 00 20 74 10 8D 16 86 01 B4 09 CD 21 C6 06 03
e 0470 01 01 EB 0E 90 8D 16 8B 01 B4 09 CD 21 C6 06 03 01 00 A0 03
e 0484 01 B4 4C CD 21 C6 06 04 01 00 C6 06 05 01 00 32 ED 8A 0E 80
e 0498 00 0A C9 75 03 E9 9B 00 BE 81 00 FC 8D 3E 06 01 33 DB AC 3C
e 04AC 0D 75 03 EB 20 90 3C 20 76 19 E8 83 00 83 FB 03 72 0F C6 06
e 04C0 03 01 03 8D 36 3A 01 E8 90 00 EB 6F 90 AA 43 E2 D9 81 3E 06
e 04D4 01 48 20 75 08 C6 06 04 01 FF EB 5B 90 81 3E 06 01 4F 4E 75
e 04E8 08 C6 06 05 01 02 EB 4B 90 81 3E 06 01 4F 46 75 08 C6 06 05
e 04FC 01 01 EB 3B 90 81 3E 06 01 31 20 75 08 C6 06 05 01 02 EB 2B
e 0510 90 81 3E 06 01 30 20 75 08 C6 06 05 01 01 EB 1B 90 81 3E 06
e 0524 01 20 20 75 03 EB 10 90 C6 06 03 01 03 8D 36 3A 01 E8 22 00
e 0538 EB 01 90 C3 80 3E 0A 01 04 72 0C 52 BA 20 65 92 CD 21 92 5A
e 054C EB 0B 90 3C 61 72 06 3C 7A 77 02 24 DF C3 50 53 51 52 57 8B
e 0560 FE 32 C0 B9 FF FF FC F2 AE B4 40 BB 02 00 8B CF 2B CE 49 8B
e 0574 D6 CD 21 5F 5A 59 5B 58 C3
r cx
047D
w
q

----the above empty line is important!---------------------

Put all lines between the cut lines into a file, e.g. ww. Then enter:

debug<ww

----Debug-script: cut out and put it into a file-----------
n capslock.com
e 0100 E9 F4 02 00 00 00 20 20 20 20 00 63 61 70 73 6C 6F 63 6B 3A
e 0114 20 43 61 6E 6E 6F 74 20 72 75 6E 20 62 65 6C 6F 77 20 44 4F
e 0128 53 20 56 65 72 73 69 6F 6E 20 32 2E 30 30 2E 07 0D 0A 00 63
e 013C 61 70 73 6C 6F 63 6B 3A 20 49 6C 6C 65 67 61 6C 20 63 6F 6D
e 0150 6D 61 6E 64 20 6C 69 6E 65 2E 20 54 79 70 65 20 27 63 61 70
e 0164 73 6C 6F 63 6B 20 68 27 20 66 6F 72 20 68 65 6C 70 2E 07 0D
e 0178 0A 00 0D 0A 43 61 70 73 4C 6F 63 6B 20 73 65 74 20 24 4F 4E
e 018C 0D 0A 24 4F 46 46 0D 0A 24 0D 0A 43 61 70 73 4C 6F 63 6B 20
e 01A0 2D 20 43 61 70 73 6C 6F 63 6B 20 54 6F 67 67 6C 65 20 55 74
e 01B4 69 6C 69 74 79 0D 0A 0D 0A 55 73 61 67 65 3A 20 63 61 70 73
e 01C8 6C 6F 63 6B 20 5B 30 7C 31 7C 6F 66 66 7C 6F 6E 5D 0D 0A 0D
e 01DC 0A 20 20 20 20 20 20 20 45 69 74 68 65 72 20 64 69 73 70 6C
e 01F0 61 79 73 20 6F 72 20 73 65 74 73 20 74 68 65 6E 20 43 61 70
e 0204 73 4C 6F 63 6B 20 6B 65 79 0D 0A 20 20 20 20 20 20 20 74 6F
e 0218 67 67 6C 65 2E 20 57 68 65 6E 20 69 6E 76 6F 6B 65 64 20 77
e 022C 69 74 68 6F 75 74 20 6F 70 65 72 61 6E 64 20 74 68 65 0D 0A
e 0240 20 20 20 20 20 20 20 63 75 72 72 65 6E 74 20 73 74 61 74 65
e 0254 20 6F 66 20 74 68 65 20 74 6F 67 67 6C 65 20 69 73 20 64 69
e 0268 73 70 6C 61 79 65 64 2E 0D 0A 20 20 20 20 20 20 20 54 68 65
e 027C 20 6F 70 65 72 61 6E 64 20 27 30 27 20 6F 72 20 27 6F 66 66
e 0290 27 20 73 65 74 73 20 74 68 65 20 74 6F 67 67 6C 65 0D 0A 20
e 02A4 20 20 20 20 20 20 6F 66 66 2C 20 27 31 27 20 6F 72 20 27 6F
e 02B8 6E 27 20 73 65 74 73 20 69 74 20 6F 6E 2E 0D 0A 0D 0A 45 72
e 02CC 72 6F 72 20 4C 65 76 65 6C 20 72 65 74 75 72 6E 65 64 3A 20
e 02E0 20 20 30 20 20 63 75 72 72 65 6E 74 20 73 74 61 74 65 20 6F
e 02F4 66 20 74 6F 67 67 6C 65 20 69 73 20 6F 66 66 0D 0A 20 20 20
e 0308 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
e 031C 20 31 20 20 63 75 72 72 65 6E 74 20 73 74 61 74 65 20 6F 66
e 0330 20 74 6F 67 67 6C 65 20 69 73 20 6F 6E 0D 0A 20 20 20 20 20
e 0344 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 33
e 0358 20 20 69 6C 6C 65 67 61 6C 20 63 6F 6D 6D 61 6E 64 20 6C 69
e 036C 6E 65 0D 0A 0D 0A 43 6F 70 79 72 69 67 68 74 20 28 43 29 20
e 0380 31 39 39 33 20 62 79 20 52 69 63 68 68 65 69 6D 65 72 2B 52
e 0394 69 63 68 68 65 69 6D 65 72 0D 0A 20 20 20 20 20 20 20 20 20
e 03A8 20 20 20 20 20 20 20 20 20 20 20 20 20 49 54 20 43 6F 6E 73
e 03BC 75 6C 74 61 6E 74 73 0D 0A 20 20 20 20 20 20 20 20 20 20 20
e 03D0 20 20 20 20 20 20 20 20 20 20 20 43 48 2D 34 31 31 37 20 42
e 03E4 75 72 67 20 26 20 48 6F 72 73 68 61 6D 20 55 4B 0D 0A 24 B4
e 03F8 30 CD 21 A2 0A 01 3C 02 73 09 8D 36 0B 01 E8 59 01 CD 20 8D
e 040C 1E 85 05 B1 04 D3 EB 83 C3 11 B4 4A CD 21 8B C3 9C D3 E0 9D
e 0420 8B E0 8B EC E8 6A 00 80 3E 04 01 FF 75 0B 8D 16 95 01 B4 09
e 0434 CD 21 EB 52 90 80 3E 03 01 00 77 4A 8D 16 7A 01 B4 09 CD 21
e 0448 B8 40 00 8E C0 80 3E 05 01 01 72 11 77 09 26 80 26 17 00 BF
e 045C EB 07 90 26 80 0E 17 00 40 26 F6 06 17 00 40 74 10 8D 16 8A
e 0470 01 B4 09 CD 21 C6 06 03 01 01 EB 0E 90 8D 16 8F 01 B4 09 CD
e 0484 21 C6 06 03 01 00 A0 03 01 B4 4C CD 21 C6 06 04 01 00 C6 06
e 0498 05 01 00 32 ED 8A 0E 80 00 0A C9 75 03 E9 9B 00 BE 81 00 FC
e 04AC 8D 3E 06 01 33 DB AC 3C 0D 75 03 EB 20 90 3C 20 76 19 E8 83
e 04C0 00 83 FB 03 72 0F C6 06 03 01 03 8D 36 3B 01 E8 90 00 EB 6F
e 04D4 90 AA 43 E2 D9 81 3E 06 01 48 20 75 08 C6 06 04 01 FF EB 5B
e 04E8 90 81 3E 06 01 4F 4E 75 08 C6 06 05 01 02 EB 4B 90 81 3E 06
e 04FC 01 4F 46 75 08 C6 06 05 01 01 EB 3B 90 81 3E 06 01 31 20 75
e 0510 08 C6 06 05 01 02 EB 2B 90 81 3E 06 01 30 20 75 08 C6 06 05
e 0524 01 01 EB 1B 90 81 3E 06 01 20 20 75 03 EB 10 90 C6 06 03 01
e 0538 03 8D 36 3B 01 E8 22 00 EB 01 90 C3 80 3E 0A 01 04 72 0C 52
e 054C BA 20 65 92 CD 21 92 5A EB 0B 90 3C 61 72 06 3C 7A 77 02 24
e 0560 DF C3 50 53 51 52 57 8B FE 32 C0 B9 FF FF FC F2 AE B4 40 BB
e 0574 02 00 8B CF 2B CE 49 8B D6 CD 21 5F 5A 59 5B 58 C3
r cx
0485
w
q

----the above empty line is important!---------------------

Put all lines between the cut lines into a file, e.g. ww. Then enter:

debug<ww

For help simply type "numlock h" or "capslock h".

Enjoy!

Kind regards, Albert

/* E-mail replies sent to address in header will be discarded.  */
/* Please send e-mail replies to richheimer{at-symbol}access.ch */

--
 * MM 1.1 #0362 *



Sat, 20 Nov 2004 03:46:00 GMT  
 DOS utility that controls Caps Lock & Num Lock keys

Quote:

> I'm looking for a DOS utility that controls the status of the "Caps Lock"
> and "Num Lock" keys.   Does anyone know of one??

It is very simple to change the key locks from DOS by peeking and poking
0x0000:0417 on an IBM-PC.  Do not do this on other types of machine.

If your _actual_ requirement is to have the fields keyed in upper case
then your compiler may have options on the accept mechanisms.  eg with
MF and MS Cobol use CALL x"AF" with 'bit-pair' function 85 to have all
input set to upper case or not.



Sat, 20 Nov 2004 15:11:32 GMT  
 DOS utility that controls Caps Lock & Num Lock keys

Quote:

>     Bookie  wrote on 03.06.02, 19:52

> B > I'm looking for a DOS utility that controls the status of the "Caps Lock"
> B > and "Num Lock" keys.   Does anyone know of one??

> ----Debug-script: cut out and put it into a file-----------
> n numlock.com
> e 0100 E9 EC 02 00 00 00 20 20 20 20 00 6E 75 6D 6C 6F 63 6B 3A 20
> e 0114 43 61 6E 6E 6F 74 20 72 75 6E 20 62 65 6C 6F 77 20 44 4F 53
> e 0128 20 56 65 72 73 69 6F 6E 20 32 2E 30 30 2E 07 0D 0A 00 6E 75

<snip>

It looks like one of those PC Magazine routines that used BASIC to generate a
xxxx.com, or variation thereof. Weren't they great !

Jimmy, Calgary AB



Sat, 20 Nov 2004 06:12:28 GMT  
 DOS utility that controls Caps Lock & Num Lock keys
    James J. Gavan wrote on 04.06.02, 00:12

    [about debug scripts]
JG> It looks like one of those PC Magazine routines that used BASIC to generate a
JG> xxxx.com, or variation thereof. Weren't they great !

    Er, yes... This one was created using MDS (Make Debug Script), a
    utility I wrote in assembly in 1992 and gave it to the ILink-
    community. MDS.COM is 1179 bytes of size, including the full help
    banner. Do you remember the ILink, a net of QWK BBSs?

    Kind regards, Albert

/* E-mail replies sent to address in header will be discarded.  */
/* Please send e-mail replies to richheimer{at-symbol}access.ch */

--
 * MM 1.1 #0362 *



Sat, 20 Nov 2004 14:24:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. num lock, caps lock, scroll lock lights

2. Num Lock and Caps Lock

3. a traffic light program with lock's (num loack Caps loack and scroll lock)

4. C3 DOS Num lock control

5. XF-created app & NUM LOCK key

6. Scrolling & CAPS-LOCK key

7. Num, Caps and Scroll Lock state?

8. how to display Num and Caps Lock state on status bar

9. Q: Determing num/caps lock status

10. {caps,num}lock - once more for the record

11. how to on/off num lock, caps lock, scroll lock ???

12. W98 OBJRexx Caps lock key

 

 
Powered by phpBB® Forum Software