1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KEYBD command and lock states

Discussion in 'Support' started by Steve Fabian, Jan 13, 2009.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,040
    Likes Received:
    84
    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.
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     

Share This Page