1 from ctypes import * 2 import pyautogui 3 import time 4 time.sleep(5) 5 while 1: 6 pyautogui.click(400, 400, clicks=1, interval=0.0, button=‘left‘) 7 time.sleep(10)
Note:
坐标(400,400)是以电脑屏幕左上角为原点;
由于本程序是死循环,在PyCharm中按“Ctrl+F2”可中断程序。
2023-11-03 14:01:04
1 from ctypes import * 2 import pyautogui 3 import time 4 time.sleep(5) 5 while 1: 6 pyautogui.click(400, 400, clicks=1, interval=0.0, button=‘left‘) 7 time.sleep(10)
Note:
坐标(400,400)是以电脑屏幕左上角为原点;
由于本程序是死循环,在PyCharm中按“Ctrl+F2”可中断程序。