Autohotkey如何模拟鼠标滑动
时间: 2023-09-23 14:06:44
浏览: 190
### 回答1:
Autohotkey 可以通过使用以下代码模拟鼠标滑动:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Mouse, Screen
Loop, 100
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
sleep, 10
```