Fórum combinação de teclas #205511
10/01/2004
0
gostaria de saber como é que eu faço para que quando eu apertar uma sequencia de taclas com o ALT precionado chame um form
ex: ALT + DHFGBC chame form2 ou 3.....
alguém poderia mostrar o código por favor
abrigado.
Awtb
Curtir tópico
+ 0Posts
10/01/2004
Beppe
Se precisar de ajuda pra adaptar é só falar.
Gostei + 0
10/01/2004
Awtb
quando eu digitar awtb com o ALT precionado no form1 chamar o form2.
valeu
Gostei + 0
12/01/2004
Nigro
Shift: TShiftState);
begin
If GetStateK (VK_Alt) And (Key = VK_A) Then
Form1.ShowModal;
end;
Gostei + 0
12/01/2004
Beppe
const Chave = ´AWTB´; // em maíusculas var Nivel: Integer; procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); begin if (GetKeyState(VK_ALT) <> 0) and (Chave[Nivel + 1] = UpCase(Key)) then begin Inc(Nivel); if Nivel = Length(Chave) then Form2.Show; end else Nivel := 0; end;
Eu não testei isso no Delphi, mas deve funfa.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)