Einzelnen Beitrag anzeigen

microtronx

Registriert seit: 8. Mär 2005
Ort: Tapfheim
55 Beiträge
 
Delphi 2010 Enterprise
 
#6

Re: Mit Tastenkombination zu einer bestimmten Taste springen

  Alt 10. Mär 2005, 08:12
Hier ein Schnippsel, der bestimmt weiterhilft.

Delphi-Quellcode:
procedure TMyForm.ApplicationShortcut(var Msg: TWMKey; var Handled: Boolean);
begin
 // wenn ALT + STRG + H gedrückt ist ...
 if (msg.CharCode=ord('H')) or (msg.charcode=ord('h')) then
 if (GetKeyState(VK_CONTROL) < 0) and (GetKeyState(VK_MENU) < 0) then begin
    MyHideFunction;
 end;
end;
Mfg.
Yusuf Zorlu
yusuf.zorlu@microtronx.com

Meine Arbeit ist so geheim ... ich habe selbst keine Ahnung was ich überhaupt mache!
  Mit Zitat antworten Zitat