Haha, no worries, I really appreciate the script, it's exactly what I was looking for!
However, some applications do not like being maximized directly from a minimized state, especially when it's minimized to tray, it's kinda interesting.
Discord being one of them.
I becomes this semi frozen window where it's basically a picture of the last "working" state of Discord.
It's not an issue with DisplayFusion, it's a general Windows issue, I have seen the same thing happen to other applications throughout the years. People that have experienced it knows what I'm talking about.
So, instead of minimizing/maximizing, I think the solution might be to minimize/restore the window instead, so, I tried editing the script, but, I'm no coding wizard, and clearly, you can't just switch out BFS.Window.Maximize with BFS.Window.Restore in the script.
I also tried to make a seperate script where instead of regular minimize, it minimize to tray, but haven't quiet figured it out yet