要使用相对坐标,在MacroRecorder中,您可以使用以下命令:

  1. 使用"SetRelativeMouseMode"命令来启用相对坐标模式:
SetRelativeMouseMode(true);
  1. 使用"MouseMove"命令来移动鼠标相对于当前位置的坐标:
MouseMove(x, y);

其中,x和y是相对于当前鼠标位置的偏移量。

  1. 示例代码:
// 启用相对坐标模式
SetRelativeMouseMode(true);

// 将鼠标向右移动100个像素
MouseMove(100, 0);

// 将鼠标向下移动50个像素
MouseMove(0, 50);

// 将鼠标向左移动50个像素
MouseMove(-50, 0);

// 将鼠标向上移动100个像素
MouseMove(0, -100);

使用这些命令,您可以在MacroRecorder中轻松使用相对坐标。

MacroRecorder如何使用相对坐标

原文地址: https://www.cveoy.top/t/topic/i92c 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录