willsonlincake 发表于 2022-4-24 18:14:26

Python控制鼠标键盘自动化

from ahk import AHK

ahk = AHK()

ahk.mouse_move(x=100, y=100, blocking=True)# Blocks until mouse finishes moving (the default)
ahk.mouse_move(x=150, y=150, speed=10, blocking=True) # Moves the mouse to x, y taking 'speed' seconds to move
print(ahk.mouse_position)

willsonlincake 发表于 2022-4-24 18:14:46

这个案例的演示可以看:
https://pypi.org/project/ahk/
页: [1]
查看完整版本: Python控制鼠标键盘自动化