Fórum Codigo das teclas #267220
02/02/2005
0
if key = S then
showmessage(´ClubeDelphi´)
if key = N then
showmessage(´Forum ClubeDelphi´)
Grato
Guilherme
Guilherme
Curtir tópico
+ 0Posts
02/02/2005
Tnaires
Se vc estiver se referindo aos códigos ASCII, a letra N possui código 78, e a letra S possui código 83.
Abraços
Gostei + 0
02/02/2005
Tnaires
Então, use Ord(´N´) e Ord(´S´) para obter os códigos virtuais.
Gostei + 0
02/02/2005
Guilherme
Gostei + 0
02/02/2005
Tnaires
procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = Ord(´S´) then ShowMessage(´Teste´); end;
Abraços
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)