Sign in to follow this  
Followers 0
DLXS

Pop ups windows

5 posts in this topic

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):

s8PDl1P.png

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!

Share this post


Link to post
Share on other sites



WinGetProcess?


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by DLXS

Share this post


Link to post
Share on other sites

Don't believe its possible for 2 processes to have the same PID

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0