DirectXのゲームでは、PyAutoGUIなどのやり方では無理
pydirectinputで可能になる
※クリックの間隔が速すぎて反応しないときがある
これで対策↓
import time
pydirectinput.mouseDown()
time.sleep(0.1)
pydirectinput.mouseUp()
インストール
pip install pydirectinput
pip install pyautogui
左上が(x=0,y=0)座標