左键按下 - LeftDown
函数简介
按住鼠标左键。
接口名称
LeftDown
DLL调用
int LeftDown(long ola);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 模拟鼠标拖拽:按下左键 -> 移动 -> 弹起左键
MoveTo(instance, 100, 100);
LeftDown(instance);
MoveTo(instance, 400, 400);
LeftUp(instance);
Python
# 待补充
返回值
1 成功,0 失败。
