Repository navigation
Add actions to minimize the active window/change the active window - #130
Conversation
| var text = this.txtWindowTitle.Text; | ||
| var separatorIndex = text.IndexOf(WindowUtilities.TITLE_SEPARATOR, StringComparison.Ordinal); | ||
|
|
||
| if (separatorIndex > 0) |
There was a problem hiding this comment.
Actually, this will still fail if the user enters NO executable, but does enter a window title that contains a " | ". Everything before that separator will be considered the executable to look for, which will fail later when finding the window. That can be fixed to compare against the executable + sep + windowtitle if all current comparisons fail.
I should really write some tests for this.
There was a problem hiding this comment.
I'm simplifying it more atm, ready in a moment.
Done
|
I don't quite understand why we don't store the HWND of the selected window. Wouldn't that be more reliable than this arbitrarily built identifier? |
|
Fair point I guess. I tried to get the scripting API and front-end to work the same, but maybe it's not worth the hassle. Actually, how would that work when serializing the profile? @Aurumaker72 |
Ahhh... You're right! It wouldn't. :P With that requirement, this implementation is sufficient yeah. It's similar to what OBS does fwiw. |
Fixes #121