Update watchdog-wow.ps1
This commit is contained in:
+4
-1
@@ -1,6 +1,9 @@
|
|||||||
|
for (;;) {
|
||||||
$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
|
Stop-Process -InputObject $NRESP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Start-Sleep 60
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user