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