键盘弹起char - KeyUpChar
函数简介
弹起指定的虚拟键字符。
接口名称
KeyUpChar
DLL调用
int KeyUpChar(long ola, string key_str);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| key_str | 字符串 | 按键字符。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 配合KeyDownChar使用:按住alt再按F4关闭窗口,然后弹起alt
KeyDownChar(instance, "alt");
KeyPressChar(instance, "F4");
KeyUpChar(instance, "alt");
Python
# 待补充
返回值
1 成功,0 失败。
