Date: 20 Mar 2023
Module : PyAutoGUI
Installation : pip install PyAutoGUI
About:
PyAutoGUI is a cross-platform GUI automation Python module for human
beings. Used to programmatically control the mouse & keyboard, also can use
it to take screenshots.
Sample:
import pyautogui
currentMouseX, currentMouseY = pyautogui.position() # Returns two
integers, the x and y of the mouse cursor's current position.
print(currentMouseX, currentMouseY)
im1 = pyautogui.screenshot() # Saves the screenshot of the current
screen
im1.save('my_screenshot.png')
im2 = pyautogui.screenshot('my_screenshot2.png')
Output:
699 699
Reference:
https://pypi.org/project/PyAutoGUI/
_______________________________________________
Chennaipy mailing list
[email protected]
https://mail.python.org/mailman/listinfo/chennaipy