怎样开启数字键?(50分)

  • 主题发起人 主题发起人 wangfangzhen
  • 开始时间 开始时间
W

wangfangzhen

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样开启数字键?下面的代码行不通?<br>&nbsp; Level := GetKeyState(VK_NUMLOCK);<br>&nbsp; GetKeyboardState(KeyState);<br>&nbsp; //CapsLockStatus := KeyState;<br>&nbsp; If Level = 0 then<br>&nbsp; &nbsp; begin <br>&nbsp; &nbsp; &nbsp; KeyState[VK_NUMLOCK] := 1;<br>&nbsp; &nbsp; &nbsp; setKeyboardState(KeyState);<br>&nbsp; &nbsp; end;
 
keybd_event(VK_NUMLOCK, $45, KEYEVENTF_EXTENDEDKEY or 0, 0); <br>keybd_event(VK_NUMLOCK, $45, KEYEVENTF_EXTENDEDKEY or KEYEVENTF_KEYUP, 0);
 
这位大哥对这个挺熟的,有空聊聊(13493781),你的qq多少?分数给你
 

Similar threads

回复
0
查看
848
不得闲
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
900
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
后退
顶部