Example use case: automated data entry.
Example prompt 1: In the selected cell(s) of the sheet, input a 4x4 sample realistic data entry.
Example prompt 2: In this google doc, solve the question(s)
goal =
'''
In the selected cell(s) of the sheet, input a 4x4 sample realistic data entry.
'''
''' How to use:
- Install dependencies
- Add your Google/Gemini API key to env.py file
- Edit the above prompt "goal" variable to any request.
- Keep the window you want to automate as the second window behind the first one ex. google sheets behind VS code editor.
Description:
- On run, the script will hide the first window ex. vs code editor.
- After hiding, the second will be screenshotted and sent with the prompt "goal" to the AI.
- The AI will generate a list of steps to accomplish the goal.
- The script cleans & parses the AI response of pyautogui commands.
- Pyautogui typing is converted to MacOS applescript typing to avoid accidental modifier keys activation.
- The script executes the steps with an editable delay to allow for proper execution.
Note on Limitaions:
- The AI will do based on 1 automated screenshot so if the window changes it won't work well.
- You will not be able to multitask while the script is running since the keyboard will be in use. '''