I am interested to see if there is a way to store mouse and keyboard movements to automate some repetitive tasks.
Right now, I am able to send mouse and keyboard movements using pyautogui like this:
pyautogui.moveTo(X, Y) # Move the mouse to XY coordinates.
pyautogui.write('Chrome', interval=0.25) # Write 'Chrome'
pyautogui.press('enter') # Press the Enter key
I know the old saying goes
The computer will always do exactly what you TELL it to do.
However, in this case, I would like to SHOW the computer how do it, and have those actions be recorded into like a text file or something that can be called at some point in the script. If that makes sense.
Would it make more sense / be more practical to just call out each stroke/click like above?