Add watchdog-wow
This commit is contained in:
commit
14ba747abd
2
watchdog-wow.bat
Normal file
2
watchdog-wow.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@echo off
|
||||||
|
powershell.exe -WindowStyle hidden %~dp0\watchdog-wow.ps1
|
10
watchdog-wow.ps1
Normal file
10
watchdog-wow.ps1
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
while ($true) {
|
||||||
|
$NRESP = Get-Process | Where-Object {$_.mainWindowTitle} | Where -Property MainWindowTitle -eq "World of Warcraft" | Where -Property Responding -eq $false
|
||||||
|
|
||||||
|
if ($NRESP) {
|
||||||
|
Stop-Process -InputObject $NRESP
|
||||||
|
}
|
||||||
|
|
||||||
|
Start-Sleep -s 120
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user