This repository contains a set of PowerShell scripts designed to automate mouse clicks on specific coordinates. The scripts allow you to create configurations of clicks, execute them repeatedly, and adjust or view click positions.
Used to create JSON configuration files that store click coordinates and actions. This is the first script you run when setting up a new automated action.
- The output is a JSON file that defines where clicks should occur and in what order.
- Once created, a configuration file can be reused multiple times with
configRunner.ps1.
Used to execute clicks based on a JSON configuration file.
-
Arguments:
-ConfigFile <path>: Specifies the JSON file to use for clicks.-Loops <number>: Determines how many times the sequence of clicks should run.
-
Example usage:
# Run clicks from a single config file 5 times
.\configRunner.ps1 -ConfigFile "MyClicks.json" -Loops 5
# Run two different click configurations sequentially
.\configRunner.ps1 -ConfigFile "FirstAction.json" -Loops 3
.\configRunner.ps1 -ConfigFile "SecondAction.json" -Loops 2You can string together multiple configurations by calling configRunner.ps1 multiple times in a script or command line sequence.
Used to view and adjust click positions in a configuration file.
Loads the JSON file and displays all clicks as draggable boxes on the screen.
After adjusting, you can update the click coordinates in the JSON file.
This ensures accuracy and allows fine-tuning of click positions without manually editing the file.
Example usage:
.\drawDraggableBoxes.ps1 -ConfigFile "MyClicks.json"Create a configuration
.\configCreator.ps1
# Follow prompts to define click coordinatesAdjust or verify positions (optional)
.\drawDraggableBoxes.ps1 -ConfigFile "MyClicks.json"Run the clicks
.\configRunner.ps1 -ConfigFile "MyClicks.json" -Loops 5Chain multiple configurations
.\configRunner.ps1 -ConfigFile "FirstAction.json" -Loops 2
.\configRunner.ps1 -ConfigFile "SecondAction.json" -Loops 3You only need to create a configuration file once for each unique action.
Config files can be reused, combined, or executed in sequence for more complex workflows.
Always verify click positions with drawDraggableBoxes.ps1 to prevent unintended actions.