求截获windows 消息的程序
本菜鸟想记录下windows 运行过程中的鼠标按键,及键盘响应
据说要使用截获windows 消息机制。怎奈所学甚浅,故以求各位大侠
相助。能给个Delphi 程序范例更好。多谢各
问题点数:210、回复次数:2Top
1 楼smallBridge(萧秋雨)回复于 2000-12-01 14:11:00 得分 200
procedure WndProc(var msg:TMessage);override;
procedure TForm1.WndProc(var msg:TMessage);
begin
case msg.Msg of {可以截获你想要截获的任何WINDOWS消息}
WM_RBUTTONDOWN : ShowMessage('LButton');
WM_CHAR : ShowMessage(chr(msg.wParam));
end;
inherited WndProc(msg);
end;
Top
2 楼whoo(谁)回复于 2000-12-02 12:04:00 得分 10
使用Hook.Top




