Move mouse cursor to second monitor using pyautogui

后端 未结 1 540
时光说笑
时光说笑 2021-02-09 13:19

I started using pyautogui about an hour ago. Very nice that python supports GUI automation. I\'m having one problem though. I use two screens and it appears that th

相关标签:
1条回答
  • 2021-02-09 13:41

    Nevermind, I have found the answer from a github post.

    It appears that moving the cursor to a second monitor can be accomplished using

    ctypes.windll.user32.SetCursorPos(2759,769)
    

    Sweet!

    0 讨论(0)
提交回复
热议问题