Delphi 如何通过代码控制打开键盘数字锁定NumLock

2022-12-27 16:26:54 作者:admin

本文整理自网络,侵删。

 uses  Windows;...procedure SetNumLockOn;var  KeyState: TKeyBoardState;begin  GetKeyboardState(KeyState);  if GetKeyState(VK_NUMLOCK) = 0 then begin    KeyState[VK_NUMLOCK] := 1;    SetKeyboardState(KeyState);  end;end; 

相关阅读 >>

Delphi 测试磁盘是否具有写访问权限

Delphi 数据库重置用户密码制作

Delphi nethttpclient post 函数

Delphi 常用api 函数

Delphi fmx 从app程序直接跳转到支付宝付款转帐页面

Delphi post登陆Delphi盒子论坛源码

Delphi通过idsmtp发送邮件的简单代码

Delphi 限制form窗体为固定的大小

decodedatetime:将一个tdatetime变量拆分成它的日期/时间 部分

Delphi 动态修改显示器分辨率

更多相关阅读请进入《Delphi》频道 >>



在线咨询 拨打电话