Hey guys,
I've been attempting to do a specific function only if a specific window is the TOP Z-order.
In other words, only if Internet Explorer is the TOP-most (active window), do XYZ.
So far I can do it if it's running, but I can't find out if it's the active window:
AllWindows = Window.EnumerateTitles();
Ignore = "Internet Explorer";
for CurrentHandle, title in AllWindows do
TitleSearch = String.Find(title, Ignore, 1, false);
if (TitleSearch ~= -1) then
Window.Minimize(CurrentHandle);
end
end
Any ideas guys?
Protocol


