按键char - KeyPressChar
函数简介
按下指定的虚拟键字符。
接口名称
KeyPressChar
DLL调用
int KeyPressChar(long ola, string key_str);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| key_str | 字符串 | 按键字符。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 按下字符 'a'
KeyPressChar(instance, "a");
// 按下字符 'enter'
KeyPressChar(instance, "enter");
Python
# 待补充
返回值
1 成功,0 失败。
