-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart_bot.bat
More file actions
21 lines (16 loc) · 808 Bytes
/
start_bot.bat
File metadata and controls
21 lines (16 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
:: What this line does is, the first time you run it, it re-launches itself
:: in a subprocess that doesn't exit after it finishes running the batch file.
:: Source: https://stackoverflow.com/questions/17118846/how-to-prevent-batch-window-from-closing-when-error-occurs
:: This is to prevent the terminal from closing on an error.
@echo off
if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit )
:: Starts the conda environment needed to run the bot
call activate pySwitchBots
:: Starts the bot with python
echo [32mReposition the terminal window out of the way of the capture utility ^& MaxAimDI Plugin[0m
set /p DUMMY=[33mHit ENTER to start the bot...[0m
cls
color 0F
python BDSP-Scripts/script_runner.py
:: Changes the window position to the top right corner
WINDOW[bottom]