For example, when I open both counter-strike and counter-strike 2 windows, then locateOnWindow will have a problem, saying, find multiple windows, actually I match the string is counter-strike, but I find counter-strike and counter-strike 2, I need to match the previous one, find a one with 2 does not need, So I added a function argument, and after testing it on my local computer, it solved the problem.
For example, when I open both counter-strike and counter-strike 2 windows, then locateOnWindow will have a problem, saying, find multiple windows, actually I match the string is counter-strike, but I find counter-strike and counter-strike 2, I need to match the previous one, find a one with 2 does not need, So I added a function argument, and after testing it on my local computer, it solved the problem.