NGU-scripts
NGU-scripts copied to clipboard
Improve window detection
Currently the window that is last in the top_windows list is chosen, if there are multiple values in that list, it's likely we will crash out.
Either we find a new, better method than the current implementation, or we check all eligible windows in the list for the game, instead of just the last.
Instead of looping through all windows until you get the first match, ask the user which window to scan instead of scanning until the first match, also bring the selected window to foreground for confirmation. This will be useful for debugging so you don't have to change window titles to run multiple scripts at the same time.