DLXS Posted April 6, 2014 Share Posted April 6, 2014 Hi, If, say, when u click on a button from windows A it opens a pop up but this one has no Control information (check picture displayed): And when you open the same window in Windows B, Windows C... and they all have the same title... How can you handle this? How can you tell the father of each pop up or manage them separately knowing what process executed them? Thanks! Link to comment Share on other sites More sharing options...
Solution FireFox Posted April 6, 2014 Solution Share Posted April 6, 2014 WinGetProcess? Link to comment Share on other sites More sharing options...
DLXS Posted April 6, 2014 Author Share Posted April 6, 2014 (edited) Ah I see. Both processes may have the same PID, right? Then I get a handle from title = popup where PID = fatherPID. Gr8! Thanks Edited April 6, 2014 by DLXS Link to comment Share on other sites More sharing options...
Palestinian Posted April 6, 2014 Share Posted April 6, 2014 Don't believe its possible for 2 processes to have the same PID Link to comment Share on other sites More sharing options...
DLXS Posted April 7, 2014 Author Share Posted April 7, 2014 Uhmmm just did a quick test and seems they both have the same PID as it's the same program. Nevertheless, I figured out how to sort it. I write it here in case it's helpful to someone: I will put both windows in different position and then look for the pop up to show up. As the pop up appears in the center of the window, I can know exactly at what coord it is. Thus, with coord and title (even if the same in all of them) I can get a handle of the specific window and manage it. Sorted for me, you were very helpful with your suggestions and I learnt something extra, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now