Is there any way to make macro scheduler know which window/s(e.g.windows A and B) is in front of a previously inactive window (windows C)which has just been made active and consequenly minimising those windows(A,B) and then make windows c active?
Can anyone post a script with its explanation in it?
Thanks
identify windows in front of another one
Moderators: JRL, Dorian (MJT support)
GetWindowList might work.
Hi spazpunt,
GetWindowList might tell you what you want to know. The user manual does not document the sort order of the windows, but it appears the currently active window is listed first, followed by the 2nd most recently active window, and so on. If the windows are overlapping, the first window would be on top, the 2nd window under the first, and so on.
You should do some experiments to see if this is always true. For example, click on the various windows to change their positions and then do a GetWindowList to see if the sort order still behaves as I described.
GetActiveWindow will tell you which window is on top, but will not tell you anything about the windows below it.
Gale
GetWindowList might tell you what you want to know. The user manual does not document the sort order of the windows, but it appears the currently active window is listed first, followed by the 2nd most recently active window, and so on. If the windows are overlapping, the first window would be on top, the 2nd window under the first, and so on.
You should do some experiments to see if this is always true. For example, click on the various windows to change their positions and then do a GetWindowList to see if the sort order still behaves as I described.
GetActiveWindow will tell you which window is on top, but will not tell you anything about the windows below it.
Gale