-
Notifications
You must be signed in to change notification settings - Fork 0
Running from Source
繁體中文:Running-from-Source-zh-TW
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"-
Crop a screenshot of the thing you want to detect and put it in
targets/. -
Copy
rules.example.jsontorules.jsonand edit theroi(screen region to watch, in absolute pixels) andimagepath. -
Run:
python -m core.run rules.json
New rules default to "dryRun": true — the engine logs matches but does not click or type anything. Flip it to false once you've confirmed detection is stable. Press Ctrl+Alt+Q at any time to stop the engine immediately.
-
Start the Python server (binds to
127.0.0.1:8765only):python -m core.server --rules-path rules.json
-
In a second terminal, install and run the GUI:
cd gui npm install npm run devnpm run devstarts the Vite dev server and Electron together. The window minimizes to the system tray on close instead of quitting — use the tray icon's "Quit" item to actually exit.
See also Building the Installer to package a distributable build yourself.