Solved

num-keyboard problems in Delphi 6 console program

Posted on 2003-11-01
6
264 Views
Last Modified: 2010-04-05
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
Comment
Question by:skafte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
DeerBear earned 250 total points
ID: 9663106
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
 
LVL 11

Assisted Solution

by:robert_marquardt
robert_marquardt earned 250 total points
ID: 9663170
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
 

Author Comment

by:skafte
ID: 9684991
There is not installed any software on that computer that is not installed on the others.
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 9685730
There may be differences in the keyboard controllers.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question