Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

num-keyboard problems in Delphi 6 console program

I have a Delphi 6 compiled console program that I've used in many years without any problems. But suddenly I can't get the [pageUP][pageDown] and the arrow-keys to work in my program. Then I figgured out to press a num key and then the [num-lock] and then all the keys works. Thats ok, but I use the arrow-keys and the [pageUP][pageDown] and the num-keyboard offen, so I attend to find a solution soon.
When I got all the keys to work (and then have to use the num-keyboad) I press the num-lock again (active) and then the other keys don't work again.

It's only a problem in my Delphi program and not in my WindowsXpPro(SP1)
I have 8 computers(WinXPpro) and only one of them have this problem. I've never seen this problem before in all the years. All computers runs the same program in a network, so it's the same .exe file.
I have changed my keyboard with no luck, and cheked that out that the keyboardsettings was right in windowsXP.

I rather not reinstall my WindowsXPPro, so that's not a solution for now.

Can anybody please help me out if you have seen anything like it before or just have a suggestion.

Regards
Peter Skafte
0
skafte
Asked:
skafte
  • 2
2 Solutions
 
DeerBearCommented:
Hi,

I'm not sure, but maybe a hook problem?
Did you install anything "weird" on that machine?

Can you return to a previous configuration which doesn't suffer
from this problem?

Did you do any Windows Update on that computer that you
didn't do on the others?

HTH,

Andrew
0
 
robert_marquardtCommented:
This is usually a problem of "extended" keys.
You have two sets of arrow keys and PgUp/PgDn keys. The separate ones and the numberpad if NumLock is off.
One set generates extended keys whereas the other not.
I would assume that you test the scancode which is different for the keys (extended bit).
0
 
skafteAuthor Commented:
There is not installed any software on that computer that is not installed on the others.
0
 
robert_marquardtCommented:
There may be differences in the keyboard controllers.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now