This is going back to the age old question of closing web browsers (sorry!). In ideal circumstances, I have no problem in closing down all web browser windows, but as it loops through all windows, it can be a bit slow:
while (win !=0)
win_get_info(win, "owner", owner);
if (owner == "IEXPLORE.EXE")
Using the User32 API for IsWindowVisible either limits the windows too far (doesn't recognise the web browsers as "visible"!) or IsWindowEnabled doesn't limit the windows at all.
However, I have noticed that using:
limited the list of windows to include the web browsers, but of course still has to go through the lengthy process of interrogating each window.
Is there an API call that can be used to check this setting more quickly than the Winrunner function?
I'm not sure why there isn't a web_browser_close wrapper for _web_browser_close, but virtually all of the "_xxx" functions are undocumented, because they are used internally as buiding blocks for those functions that we all know and love.