1

Topic: The strange keyboard message on pushing Enter

There is a remote object with several POS-terminals, on all Win XP Embedded. Keypads presumably are not present (though I can be mistaken), but there is a scanner of bar codes and the kard-reader, emulating the keypad. At pushing of all keys except for Enter normal messages WM_KEYDOWN with correct WParam and LParam come. On Enter WParam correct comes - 13, and LParam always 1. Similarly on WM_CHAR. It is shown on all terminals of the given object, and both on scanners, and on readers.
Question: who is guilty and what to do? I suspect that a problem not in scanners and readers - they cannot  simultaneously. To experiment with "the live" keypad in the near future it does not turn out, since object remote.
LParam it is necessary for determination of the scan-code of a pushed key.

2

Re: The strange keyboard message on pushing Enter

A-MaR wrote:

to Experiment with "the live" keypad in the near future it does not turn out, since object remote.

On the with normal the keypad not to check up? Can enter always the such comes.

3

Re: The strange keyboard message on pushing Enter

wadman wrote:

On the with normal the keypad not to check up? Can enter always the such comes.

That's just the point, as on mine and on all remaining objects all is normal, Enter comes with LParam = 11C0001 that with the keypad that with emulators.

4

Re: The strange keyboard message on pushing Enter

MSDN WM_KEYDOWN wrote:

lParam
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table.
0-15
Specifies the repeat count for the current message. The value is the number of times the keystroke is autorepeated as a result of the user holding down the key. If the keystroke is held long enough, multiple messages are sent. However, the repeat count is not cumulative.
16-23
Specifies the scan code. The value depends on the OEM.
24
Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101 or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28
Reserved; do not use.
29
Specifies the context code. The value is always 0 for a WM_KEYDOWN message.
30
Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is zero if the key is up.
31
Specifies the transition state. The value is always zero for a WM_KEYDOWN message.

5

Re: The strange keyboard message on pushing Enter

In general, very likely, that it spoils PuntoSwitcher, and still to any shaggy version when process still was called ps.exe. A problem only on those terminals on which this infection has been found in processes. For not clear reason it in any it does not want to be beaten WinExec th whereas I punto.exe is beaten on hurrah. But it already other question.

6

Re: The strange keyboard message on pushing Enter

That is, that the scan-code it entirely fault and the liability of the producer also can be almost arbitrary - you does not confuse. ...

7

Re: The strange keyboard message on pushing Enter

Well why, in the program the adjustment is provided, allowing to be anchored and to the arbitrary scan-code. The only stipulation - it should be not zero.

8

Re: The strange keyboard message on pushing Enter

A-MaR;
And a binding to  to the code that ?
The keypad (or to it the similar device) can be connected on any interface;
Though RS-232

9

Re: The strange keyboard message on pushing Enter

Under RS-232 separate object with the messages, and here speech about the keypad emulator when for a card with a magnetic band the beginning, the termination of the track and the stop character is quite specific characters with the scan-codes.

10

Re: The strange keyboard message on pushing Enter

A-MaR;
To the program what business to scan-codes - ASCII received - that else is necessary

11

Re: The strange keyboard message on pushing Enter

Isokerf;
Problem in that  comes in current layout that is not always good.

12

Re: The strange keyboard message on pushing Enter

And for a long time Enter depends on layout?

13

Re: The strange keyboard message on pushing Enter

A-MaR wrote:

it is passed...
That's just the point, as on mine and on all remaining objects all is normal, Enter comes with LParam = 11C0001 that with the keypad that with emulators.

It is as though logical that on enter there is an end of buffering water in the scanner and its transmission to a device to you, therefore the counter of repetitions logically that 1, and all remaining fields there auxiliary and OEM Dependent.
What you there want to see, what would like to make?

14

Re: The strange keyboard message on pushing Enter

Anyhow, but after switch-off  on Enter correct began to come LParam.

15

Re: The strange keyboard message on pushing Enter

Dimitry Sibiryakov wrote:

And for a long time Enter depends on layout?

If a question to me, in  not only enter.

16

Re: The strange keyboard message on pushing Enter

ASCII is 0x00-0x7f if that