Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

List windows to get one below my app

Im trying to create a program to put in snippets of code from the system tray, What Im trying to do is list the windows open to find the one below my application, then on click bring the application into focus, then using sendkeys send the snippet.

I have no idea how to get the window below mine, does anyone else?

Thank you
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What does "below mine" mean?  Are you talking about the z-order of the windows?  You might be able to enumerate the top-level windows, and check whether the bounds of the window is within the bounds of your window, but the z-order would make it trickier.
Avatar of tonelm54
tonelm54

ASKER

Basically is is possible to pull a list of all windows and their Z-Order?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial