CapLock(True); (* 大写 *) CapLock(False); (* 小写 *)
//(* 键盘大小写锁定 *)
Procedure CapLock(bLockIt: boolean);
Var
Level : Integer;
KeyState : TKeyBoardState;
begin
Level := GetKeyState(VK_CAPITAL);
GetKeyboardState(KeyState);
if bLockIt then
KeyState[VK_CAPITAL] := 1
else
KeyState[VK_CAPITAL] := 0;
setKeyboardState(KeyState);
end;
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.17253589630127 seconds