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