Create auto task is a set of scripts that save, format, and generate a python code using pyautogui to replicate a process. You can do any task just once and then have python code that replicates the same task.
- Clone this repository using:
git clone https://github.com/jromano743/create-auto-task.git
- Locate in the folder project and create a virtual environment.
cd create-auto-desk
virtualenv venv
/venv/Scripts/activate
- Install the requirements.
pip install -r requirements.txt
-
Run the record.py file and do your tasks. Then press "esc" two times to stop record. The interactions.json file will be generated.
-
With interaction.json file generated , run the generate_code.py file.
-
The generated_file.py file will generate a new file with the name your given. That file will have the pyautogui code to replicate the task.
-
In your generated code you can modify the duration between movements of mouse.