Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

KEYBD command and lock states

May
3,515
5
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
 
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.
 
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" <[email protected]>; "rconn"
<>
---------
This may be the reason why some mail processing software mishandles the
sender information.
--
Steve
 

Similar threads

Back
Top