Update watchdog-wow.ps1

This commit is contained in:
Gregory Lirent 2024-08-01 23:40:22 +03:00
parent cf2007df3c
commit 0859928964
Signed by: lirent
GPG Key ID: F616BE337EFFEE77

View File

@ -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) { Start-Sleep 60
Stop-Process -InputObject $NRESP
} }