How to get pyautogui's click working on mac?

前端 未结 4 1296
盖世英雄少女心
盖世英雄少女心 2021-01-26 20:16

pyautogui\'s click method\'s issue: I am running the script from Spyder, if I click anything on Spyder\'s window the click works fine.

If I execute a script to open Outl

4条回答
  •  没有蜡笔的小新
    2021-01-26 20:33

    I was also facing same issue, Here is what I tried :

    Just add one more line pyautogui.dragTo() to focus on that particular selected area:

    pyautogui.moveTo(990,28)
    pyautogui.dragTo() 
    pyautogui.click()
    

提交回复
热议问题