KEYBD command and lock states

May 20, 2008
3,515
4
Elkridge, MD, USA
On my WinXP SP3 system the control of the CapsLock, NumLock and ScrollLock
states by the KEYBD command is unpredictable. While repeating the same
command at least once always results in the direct indications (i.e.,
keyboard lights, and the state reported either by the _...LOCK variables or
by the KEYBD command in reporting mode) matching the specified ones, the
actual operational mode does not always match the observations. For example,
the "numlock" light may be on, but the numeric keypad is not in numeric
mode. In some cases either of the commands KEYBD /S0 or KEYBD /S1 toggles
the actual scroll state. I have not yet found a consistent, repeatable
sequence. The problem occurs just as much in 4NT versions going back to
6.02.245 as in the latest 10.00.031.

I had only recently had a need to use these options, hence had not
previously observed the issue.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
On my WinXP SP3 system the control of the CapsLock, NumLock and ScrollLock
states by the KEYBD command is unpredictable. While repeating the same
command at least once always results in the direct indications (i.e.,
keyboard lights, and the state reported either by the _...LOCK variables or
by the KEYBD command in reporting mode) matching the specified ones, the
actual operational mode does not always match the observations. For example,
the "numlock" light may be on, but the numeric keypad is not in numeric
mode. In some cases either of the commands KEYBD /S0 or KEYBD /S1 toggles
the actual scroll state. I have not yet found a consistent, repeatable
sequence. The problem occurs just as much in 4NT versions going back to
6.02.245 as in the latest 10.00.031.

--
Steve

Not reproducible here (either in XP or Vista). This would have to be a problem either with your keyboard driver or hardware; all that TCC does is make an API call to tell Windows to set or clear the flag.

Not sure what you're wanting to use scroll lock for -- I haven't seen a program that uses it for 15 years.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| Not reproducible here (either in XP or Vista). This
| would have to be a problem either with your keyboard
| driver or hardware; all that TCC does is make an API
| call to tell Windows to set or clear the flag.

I'll continue to investigate.

| Not sure what you're wanting to use scroll lock for --
| I haven't seen a program that uses it for 15 years.

Vince's plugin 4console uses it to enable horizontal scrolling via alt-left
and alt-right. My other program, which uses it for horizontal scrolling
within a pane instead of switching between panes, is indeed older than 15
years.

BTW, in your response you did not strip my signature. As a result the "OE
fix" software I use for preprocessing OE mail stripped everything starting
with the "-- " when attempting to make the above response. I had to disable
it to make this response. I now discovered that messages sent from the
JPsoft NGs via email have TWO senders:
---------
From: "JP Software Forums" <neil@jpsoft.com>; "rconn"
<>
---------
This may be the reason why some mail processing software mishandles the
sender information.
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
Z CMDDebug - TCC unknown command Support 2
F Edit command Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 28.02.17 Support 0
old coot LEAVE appears to affect command-line arguments Support 11
J VDESKTOP command Support 3
old coot tee command cancels colors Support 33
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) [SOLVED] Support 1
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
fpefpe winfr command Support 4

Similar threads