logo
summer

太阳当空照,花儿对我笑。

Python连点器

1/6/2023, 2:23:15 PM
  1. 首页
  2. /
  3. 正文
import win32api, time, win32con, keyboard


def keepClick():
    time.sleep(1)
    while True:
        try:
            win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, 0, 0)
            win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, 0, 0)
            time.sleep(0.05)
        except WindowsError as e:
            print(e)


keyboard.add_hotkey('w', keepClick)
keyboard.record('q', keepClick)

热门文章
标签云
© 2021 Copyright 本站由 upyun 提供储存服务