How to print out 'Live' mouse position coordinates using pyautogui?

前端 未结 1 1368
北恋
北恋 2021-01-05 01:03

I used lots of different source codes, and even copied and pasted but I keep getting random symbols that shift when i move my mouse over them here is my code...

         


        
相关标签:
1条回答
  • 2021-01-05 01:31

    Code :

    import pyautogui
    pyautogui.displayMousePosition()
    

    Here is some output :

    Press Ctrl-C to quit.
    X:  0 Y: 1143 RGB: ( 38,  38,  38)
    

    Here is the video where this is being demonstrated https://youtu.be/dZLyfbSQPXI?t=809

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