issues
search
t4rra
/
CCStopper
[Archived] Stops Adobe's pesky background apps and more 😉
GNU General Public License v3.0
1.06k
stars
65
forks
source link
Improve StopProcesses.ps1
#32
Closed
ItsProfessional
closed
2 years ago
ItsProfessional
commented
2 years ago
Simplify if statement that checks if a adobe app is running
Checks if the process's title has a length of more than 0 characters, if so, it has a visible window as hidden windows have a title with a length of 0
Since anything other than 0 is equal to True, we just: if($_.mainWindowTitle) {...}
Remove redundant "-eq $True" code since the if statement can parse any boolean
Inline few lines of code