How to get pyautogui's click working on mac?

前端 未结 4 1335
盖世英雄少女心
盖世英雄少女心 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:57

    OS X Mojave, the following works for me:

        pyautogui.moveTo(pos)
        pyautogui.dragTo(button='left')
    

    pyautogui.click() throws an attribute error but pyautogui.dragTo() works instead.

提交回复
热议问题