
Zitat von
Mr.Dollar2k3:
woher weisst du welche taste welche Wert hat ???
Ich hab das so rausgefunden:
Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
Label1.Caption := IntToStr(key);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
KeyPreView := true;
end;
Bloß kommt bei mir beim "S" 83 raus und nicht 53
[Edit]OK, meins geht auch, man muss es halt so schreiben:
Delphi-Quellcode:
if (ssCtrl in Shift) and (Key = 83) then // Ctrl + S
Senden1.Click;
also ohne das Dollar-zeichen (kA, wie das in Delphi heißt

)[/Edit]