我已经解决了,你虽然理解错了我的意思,但我还是给你加分吧,谢谢你回答我的问题,并附上<br>我的解决方法,供大家参考<br> ShortCutToKey(SysHotKey.HotKey, iKey, ShirtKey);<br> Shirt := ByteReserve(Word((SysHotKey.HotKey and $F000) shr 8));<br> try<br> RegisterHotKey(MainForm.Handle,SysHotKeyID,Shirt,Cardinal(Chr(iKey)));<br> except<br> OKMsg('注册系统热键失败');<br> exit;<br> end;<br>function ByteReserve(Value: Word):Word;<br>var<br> buf:Byte;<br> m: Integer;<br>begin<br> Result := 0;<br> for m:=0 to 7 do<br> begin<br> buf := Byte((Value shr m) and $01);<br> Result := Result or (buf shl (7-m));<br> end;<br>end;<br>