直接移动 - MoveToWithoutSimulator
函数简介
把鼠标移动到目的点(x, y),不使用鼠标轨迹,即使开启鼠标轨迹此接口也不会生效。
接口名称
MoveToWithoutSimulator
DLL调用
int MoveToWithoutSimulator(long ola, int x, int y);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| x | 整数型 | 目标X坐标。 |
| y | 整数型 | 目标Y坐标。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 直接移动鼠标到坐标(200, 150),不使用轨迹模拟
MoveToWithoutSimulator(instance, 200, 150);
LeftClick(instance);
Python
# 待补充
返回值
1 成功,0 失败。
