When I open the same application twice,how to choose the window I want with the selector?



For example,I opened two .txt files with the same name so that their selectors are same.For description,I called them A and B.I want type into some words into A,and then type into some words into B for a while,a few minutunes later,I type into words into A again.
So I want to know is there any solution to distinguish two window with the same selector?



If your txt files have the same name (this means that the selectors are exactly the same), then the robot will type into in that txt file where you have the focus.