摘要: import time,win32gui import pyautogui time.sleep(2) handle1 = win32gui.GetForegroundWindow() #GetForegroundWindow使用此方法返回一个句柄di保存在handle1 print("显示当前句柄 阅读全文
posted @ 2023-05-11 19:31 十二点零一分十一秒 阅读(45) 评论(0) 推荐(0)
摘要: import win32api, win32con, time, random def move_click(x, y, t=0): # 移动鼠标并点击左键 win32api.SetCursorPos((x, y)) # 设置鼠标位置(x, y) print(x,y) # 执行左单键击,若需要双击则 阅读全文
posted @ 2023-05-11 19:25 十二点零一分十一秒 阅读(65) 评论(0) 推荐(0)