auto-ms-paint-tool is a Python-based tool designed to automate the process of drawing in MS Paint. This tool extracts points from an image and reproduces them on the MS Paint canvas. It supports drag-and-drop file functionality and allows users to draw points either sequentially or in random order.
- Drag-and-Drop File Support: Easily drag and drop image and output files into the application.
- Canvas Area Selection: Set a specific area on the MS Paint canvas to draw.
- Point Extraction: Extract points from an image and save them to an output file.
- Random Drawing: Option to draw points in a random order.
- Sequential Drawing: Option to draw points in a sequential order.
-
Clone the Repository:
git clone https://github.com/lc-wang/auto-ms-paint-tool.git cd auto-ms-paint-tool
-
Install Dependencies: Make sure you have Python installed. Then, install the required packages using pip:
pip install -r requirements.txt
-
Install tkinterdnd2:
pip install tkinterdnd2
-
Run the Application:
python gui.py
-
Set Image and Output File Paths:
- Use the "Browse" button or drag-and-drop files into the respective fields.
-
Select Canvas Area:
- Click on "Set Canvas Area" and select the area on the screen where MS Paint is open.
-
Extract Points:
- Click on "Extract Points" to extract points from the selected image and save them to the output file.
-
Draw Points:
- Click on "Draw Points" to start drawing on the MS Paint canvas. You can choose to draw in random order by checking the "Draw in Random Order" checkbox.
This project is licensed under the MIT License. See the LICENSE file for details.
- tkinterdnd2: For providing drag-and-drop support in Tkinter.
- pyautogui: For enabling automation of mouse and keyboard actions.