Autor Beitrag
FD-83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Di 29.07.03 21:34 
Ich möchte, dass meine Anwendung auf alle WM_APPCOMMAND Messages reagiert. Das sind die Messages die ausgelöste werden, wenn man eine der Multimedia Tasten auf seiner Tastatur drückt.

Die WM_APPCOMMAND Message wird aber jeweils nur an das aktive Fenster geschickt. Meine Anwendung soll die Messages aber auch auswerten wennes nicht aktiv ist. Wahrscheinlich wäre dazu ein globalr Hook mit DLL nötig oder gibt es da noch andere Alternativen?`

Ich habe beislang noch nie mit globelen Hooks gearbeitet und die Beispeile die ich bislang gefunden habe waren immer "nur" Tastatus und Maus Hooks. Aber wie kann ich ei8nen Hook für nur eine Bestimmte Message machen?!

Wäre super wenn da jemand ein paar konkrete Tipps hätte.

Gruss Frederik
andisun
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mo 05.01.04 18:39 
habe leider das selbe problem, hab eerst auch danach gesucht wie ich die tasten auf meiner multimediatastatur abfange...
bin dann auf wm_appcommen gestoßen, nru funktioniert das nur bei aktiven fenstern, wie macht man das sonst?
andisun
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mo 05.01.04 21:42 
hab mir das ganze greade nochmal angeguckt / getestet:

// zur info ich hab das Microssoft Wireless Multimedia Keyboard

also bei mir funktionieren nun die Tasten stop, prev, next, und play( aber nur wenn das fenster aktiv ist, ansonsten wird WMP gestartet, obwohl die medien taste mit meinem programm belegt ist...

in der msdn steht jede menge lesenswertes, aber woanders hab ich noch nix gefunden, wäre echt toll wenn jemand tipps hätte...
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 05.01.04 22:09 
Hi,

Ein Beispiel mit Source-Code gibt's hier:
www.carbonsoft.com/files/cxkeyp10.exe
andisun
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mo 05.01.04 22:30 
danke schön wer dich mri mal anschaun