Fix: Mute and unmute properly.
When mute condition is background, all background processes are muted.
When mute condition is minimized, unminimized processes are unmuted.
@lamrongol I was able to incorporate all the changes.
Issue is still with multi-window processes. Since only the Main Window handle is checked for the Iconic property, it causes all windows to remain muted/unmuted until the main window is minimized/unminimized. A fix will probably include checking for the Window handle instead of the process, and muting only the process related to that window handle.
Forcing a run of RunMuter(-1) to reflect the changes causes exceptions to occur (due to the -1 PID not being valid). Added a new function ReloadMuter() for better reload.
Fix: Mute and unmute properly. When mute condition is background, all background processes are muted. When mute condition is minimized, unminimized processes are unmuted.
Update: Reflect condition setting immediately.