publish start-all.ps1
This commit is contained in:
parent
d03ddd0ea6
commit
1d132ed2a0
1 changed files with 5 additions and 11 deletions
|
|
@ -17,20 +17,14 @@ if (Get-Command python -ErrorAction SilentlyContinue) {
|
||||||
# NOTE: eve_local_watcher disabled — on a multi-monitor desktop its OCR region reads
|
# NOTE: eve_local_watcher disabled — on a multi-monitor desktop its OCR region reads
|
||||||
# chat fragments and false-flags pilots not in system. danger_watch (zKill by system)
|
# chat fragments and false-flags pilots not in system. danger_watch (zKill by system)
|
||||||
# covers real kills/killers reliably. Re-enable once Local list OCR is solved.
|
# covers real kills/killers reliably. Re-enable once Local list OCR is solved.
|
||||||
$watchers = @("eve_combat_watcher.py", "eve_chat_watcher.py", "eve_rock_watcher.py", "eve_audio_watcher.py", "eve_autoupdate.py")
|
$watchers = @("eve_combat_watcher.py", "eve_chat_watcher.py", "eve_rock_watcher.py",
|
||||||
|
"eve_audio_watcher.py", "eve_orehold_watcher.py", "eve_autoupdate.py")
|
||||||
foreach ($w in $watchers) {
|
foreach ($w in $watchers) {
|
||||||
Start-Process pythonw -ArgumentList "`"$here\$w`"" -WorkingDirectory $here -WindowStyle Hidden
|
$err = Join-Path $here ("_err_" + $w + ".log")
|
||||||
|
Start-Process pythonw -ArgumentList "`"$here\$w`"" -WorkingDirectory $here `
|
||||||
|
-WindowStyle Hidden -RedirectStandardError $err
|
||||||
Write-Host "started $w"
|
Write-Host "started $w"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ore/gas-hold watcher: OCR mode is headless too (after a one-time --snip).
|
|
||||||
$cfg = Get-Content (Join-Path $here "config.ini") -ErrorAction SilentlyContinue
|
|
||||||
if ($cfg -match "mode\s*=\s*ocr") {
|
|
||||||
Start-Process pythonw -ArgumentList "`"$here\eve_orehold_watcher.py`"" -WorkingDirectory $here -WindowStyle Hidden
|
|
||||||
Write-Host "started eve_orehold_watcher.py (OCR mode)"
|
|
||||||
} else {
|
|
||||||
Write-Host "ore-hold watcher NOT started (timer mode is interactive - run it in its own window, or set mode=ocr + --snip)."
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "Watchers running. Stop them with: Get-Process pythonw | Stop-Process"
|
Write-Host "Watchers running. Stop them with: Get-Process pythonw | Stop-Process"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue