Update watchdog-wow.ps1
This commit is contained in:
parent
cf2007df3c
commit
0859928964
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user