Screen.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:fatego-auto 作者: lishunan246 项目源码 文件源码
def _click(x, y):
        handle = win32gui.GetForegroundWindow()
        x_old, y_old = win32api.GetCursorPos()
        # see https://github.com/asweigart/pyautogui/issues/23
        try:
            pyautogui.click(x, y, 1)
        except FileNotFoundError:
            pass

        win32api.SetCursorPos((x_old, y_old))
        win32gui.SetForegroundWindow(handle)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号