锁定输入 - LockInput
函数简介
锁定或解除前台键盘、鼠标输入。
接口名称
LockInput
DLL调用
int LockInput(long ola, int lockType);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| lockType | 整数型 | 锁定类型:0 不锁定;1 锁定键盘鼠标。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 锁定前台键鼠
LockInput(instance, 1);
// ...
LockInput(instance, 0);
Python
# 待补充
返回值
整数型:0 失败,1 成功。
注意事项
- 行为与通过 SetConfigByKey 设置
InputLock等效。
