Autor Beitrag
mattl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mi 11.07.07 16:30 
Ich verwende in meinem Programm systemweite Hotkeys das funktioniert auch problemlos nur möchte ich jetzt auch die Zusatztasten meiner Tastatur für Hotkeys verwenden...
Nur habe ich leider keine Ahnung wie ich das anstellen soll... bzw. ob das eigentlich möglich ist
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 11.07.07 16:38 
Afaik muss man für solche Tasten (Play, Stop, eMail, Internet, Einkaufen, WebCam, Messenger, und was da sonst noch alles fürn Kram drauf ist), die Messsage WM_APPCOMMAND abfangen. Mehr dazu hier. Für Hotkeys kann man die aber nicht benutzen, die Dinger sind von Natur aus hot ;-).

_________________
We are, we were and will not be.
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mi 11.07.07 17:23 
messages abfangen? mit einem hook?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 11.07.07 17:30 
Ne, ohne Hook. Das geht zwar auch, aber zumindest bei den Player-Tasten habe ich da ganz doofe Erfahrungen gemacht. Ich mein das so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
TForm1 = class(TForm)
//...
  protected
    procedure Sondertaste(Var aMSG: tMessage); message WM_APPCOMMAND;

// ..
procedure TForm1.Sondertaste(Var aMSG: tMessage);
begin
  case aMSG.LParam of
    // hier unterscheiden, welche Taste nun genau gedrückt wurde.
  end;
end;


Ob das aber wirklich für alle diese Tasten so geht, weiß ich nicht ;-)

_________________
We are, we were and will not be.
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mi 11.07.07 17:39 
ok werde das einmal ausprobieren, wenn die player tasten funktioniern bin ich schon zufrieden ;)
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mi 11.07.07 18:31 
sry


Zuletzt bearbeitet von mattl am Mi 11.07.07 18:35, insgesamt 1-mal bearbeitet
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 11.07.07 18:35 
Wenns wirklich nur um die Player-Tasten geht, dann guck mal da.

_________________
We are, we were and will not be.
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mi 11.07.07 18:40 
wie kommt man an solche konstanten für messages ? ;)