Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要每 60 秒向特定应用程序发送一次“f5”击键。应用程序在三个屏幕之一上的固定位置保持运行。
有没有什么方法可以自动完成这个击键而不必保持焦点?
import pyautogui import time while True: pyautogui.press('f5') time.sleep(60)