NGU-scripts icon indicating copy to clipboard operation
NGU-scripts copied to clipboard

Improve window detection

Open kujan opened this issue 6 years ago • 1 comments

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.

kujan avatar Nov 13 '19 10:11 kujan

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.

kujan avatar Nov 14 '19 15:11 kujan