将热键转化为字符串

I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
将Windows的Hot Key转换成字符串 function ShortCutToString(const HotKey:word):string;
var
shift:tshiftstate;
begin
shift:=[];
if ((wordrec(HotKey).hi shr 0) and 1)<>0 then
include(shift,ssshift);
if ((wordrec(HotKey).hi shr 1) and 1)<>0 then
include(shift,ssctrl);
if ((wordrec(HotKey).hi shr 2) and 1)<>0 then
include(shift,ssalt);
result:=shortcuttotext(shortcut(wordrec(hotkey).lo,shift));
end;
 

Similar threads

I
回复
0
查看
608
import
I
I
回复
0
查看
534
import
I
I
回复
0
查看
605
import
I
I
回复
0
查看
520
import
I
I
回复
0
查看
674
import
I
顶部