Autor Beitrag
wazap
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 25



BeitragVerfasst: Di 13.01.09 19:40 
Hallo...

Ich hab beim Programmieren gemerkt das ENTER (#13) = NumBlock ENTER ist.
Gibt es da eine möglichkeit herauszufinden ob jetzt Enter oder NumBlock Enter gedrückt wurde?

Ich hab bereits die Suche verwendet hab aber leider nichts gefunden.

Danke
Gruß wazap
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 13.01.09 19:52 
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Di 13.01.09 20:19 
Es sind ganz einfach zwei verschiedene Tasten mit verschiedenen Nummern. Schau mal in die Delphi-Hilfe unter VIRTUELLE TASTENCODES oder lass es dir als Integer aufzeichnen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
var
  last: Integer;

procedure TForm1.FormCreate(Sender: TObject);
begin
  last := 0;
end;

procedure TForm1.FormKeyDown(Sender: TObject(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key <> last then
    ShowMessage(IntToStr(Key));
end;
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 13.01.09 20:27 
Enter = VK_RETURN für bei Enter-Tasten. Um die beiden Enter-Tasten zu unterscheiden, muss bit 24 von lParam überprüft werden.


Zuletzt bearbeitet von toms am Mi 14.01.09 06:55, insgesamt 1-mal bearbeitet
wazap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 25



BeitragVerfasst: Mi 14.01.09 00:34 
Ich habe was auf Delphi.About gefunden.
Hier mal der Link für die die es Interessiert:
Delphi.About

Gruß
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 14.01.09 10:23 
Naja, der Link stand auch schon hier :mrgreen:
wazap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 25



BeitragVerfasst: Do 15.01.09 23:57 
Bin ich jetzt blöd oder was? Da stand doch vorher was anderes ?!