Pyautogui Installation
pip3 install pyautogui
Muddy Macaque
pip3 install pyautogui
py -m pip install pyautogui
#thats for if you arnt in the same directory, witch mot of you arnt
>>> pyautogui.position() # current mouse x and y
(968, 56)
>>> pyautogui.size() # current screen resolution width and height
(1920, 1080)
>>> pyautogui.onScreen(x, y) # True if x & y are within the screen.
True
pyautogui keyboard
>>> list(pyautogui.locateAllOnScreen('looksLikeThis.png'))
[(863, 117, 70, 13), (623, 137, 70, 13), (853, 577, 70, 13), (883, 617, 70, 13), (973, 657, 70, 13), (933, 877, 70, 13)]