How to perform automatic task by using python coding
PyAutoGUI
in python, we use pyautogui module to perform automatic work
1: first we install module "pip3 install PyAutoGUI"for Linux user
2:if your window user then you type"pip install PyAutoGUI"
3:secod we find the screen cursor position with
currentMouseX, currentMouseY = pyautogui.position() # Get the XY position of the mouse.
4: for moving the cursor
pyautogui.moveTo(100, 150) # Move the mouse to XY coordinates
5: for click perform tast
pyautogui.click() # Click the mouse.
source code:
import pyautogui as py,time
import webbrowser
time.sleep(5)
for i in range(20):
time.sleep(12)
#print(py.position())
py.click(352 ,55)
py.typewrite(" Adrees umer")
time.sleep(7)
py.typewrite(["enter"])