Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyautogui

>>> 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
Source by pyautogui.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #pyautogui
ADD COMMENT
Topic
Name
3+6 =