再给你个例子...这个肯定行.
......
public
procedure WMHotKey(var Message: TWMHOTKEY); message WM_HOTKEY;
................
procedure TForm1.FormCreate(Sender: TObject);
begin
//注册ctrl+shift+alt+a热键
RegisterHotKey(Handle, GlobalAddAtom('hotkey'), MOD_CONTROL+MOD_ALT+MOD_SHIFT, ord('A'));
end;
procedure TForm1.WMHotKey(var Message: TWMHOTKEY);
begin
//按下热键所执行的事件
application.MessageBox('内容','标题',mb_ok);
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
//在关闭时注销热键
UnregisterHotKey(Handle, GlobalAddAtom('hotkey'));
end;