Hi,
ich hab einen Hook programmiert, der Tastaturbefehle mit Hilfe von
Delphi-Quelltext
1:
| sendmessage(HWND_BROADCAST, ncode, wparam, lparam); |
an die Außenwelt schickt. Diese will ich in meinem Programm mit der WndProc abfangen wie folgt:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
| program Hilfe;
uses Forms, Windows, Messages, Dialogs, FASHilfeSystem in 'FASHilfeSystem.pas' , HilfsUnit in 'HilfsUnit.pas';
{$R *.RES}
function WndProc(hWnd: HWND; uMsg: UINT; wParam: wParam; lParam: LParam): lresult; stdcall; begin showmessage('WindowProc'); end;
begin Application.Initialize; Application.Title := ' Hilfe'; Application.CreateForm(TDorSylv, DorSylv); Application.Run; end. |
Aber: Keine Reaktion! Mein Hook sendet die Messages raus aber das Programm interessiert das nicht im Geringsten.
MfG mischer
Moderiert von
Motzi: Code- durch Delphi-Tags ersetzt.