OCR Team Trials Refresh Script for Umamusume: Pretty Derby
Built in AutoHotkey, credit to thqby for their amazing Rapid OCR Library and also iseahound for their ImagePut Library.
This script is designed to automatically refresh the Team Trials screen in Umamusume: Pretty Derby until it finds the specified opponents. It uses OCR to read the opponent names from the screen and compares them against a list of target names provided by the user.
F9: STOP THE SCRIPT
There are two ways to use this script:
-
Go to the releases page and download the latest version of the script. Extract
Uma-Radar.exe.zipand runUma-Radar.exe. -
Run
Uma-Radar.exeonce to create theconfig.inifile. Openconfig.iniand set thetargetsvariable to the names of the opponents you want to find, separated by commas. For example:targets=Special Week, Silence Suzuka, Tokai Teio -
Save the
config.inifile and runUma-Radar.exeagain. The script will automatically search for the specified opponents in the game.
-
Download and install AutoHotkey.
-
Download the
Uma-Radar.ahk.zipfrom the releases page, or clone this project. -
Either run
Uma-Radar.ahkdirectly or compile it to an executable using AutoHotkey's compiler. -
Once you've run the script, it will create a
config.inifile. Openconfig.iniand set thetargetsvariable to the names of the opponents you want to find, separated by commas. For example:targets=Special Week, Silence Suzuka, Tokai Teio -
Save the
config.inifile and run the script again. The script will automatically search for the specified opponents in the game.
Please test this first by using a word that you know will be on the screen before the opponent's name, such as "Starting" or "Next". This will help you confirm that the script is working correctly.
The config.ini file contains the following settings:
-
sound: Add your own .wav file if you're feeling quirky and change the config to point to it. -
TargetText: A comma-separated list of opponent names to search for. For example:targets=Special Week, Silence Suzuka, Tokai Teio -
sleept: The amount of time (in milliseconds) to wait between each refresh. Adjust this value if you want the script to refresh more or less frequently. However, the default is roughly how long the image takes to stabilize. -
jumpBack: A binary setting (0 or 1) that sets whether to return your mouse to its original position after clicking the refresh button. Set this to 1 if you want the script to move your mouse back to its original position after refreshing, or set it to 0 if you want the mouse to stay on the refresh button. -
CoordXandCoordY: The X and Y coordinates of the location on the screen to be clicked. If left at the default 0, there is smart co-ordinate detection that will attempt to find the refresh button. However, if you want to set the coordinates manually, you can use a tool like Window Spy to find the coordinates of the refresh button (or anything else, really) and input them into theconfig.inifile.