Function - Close All Popup Windows Of A Parent Window

Post your working scripts, libraries and tools
User avatar
Posts: 96
Joined: 27 Oct 2017, 14:30
Facebook: They have no decency!
Google: They have no decency!
GitHub: Ixiko
Location: Somwhere between Mars and Earth

Function - Close All Popup Windows Of A Parent Window

20 Jul 2018, 16:45

This function based only on a small DllCall that retrieves the last hwnd of the last active popup window of a main window.
I wrapped these in a loop that closes all blocking windows. This feature will try three different methods to close the current
popup window (from "gentle" to "powerful"). This gives you access to the main window again. I use this function
to automate processes without having to check the status of open windows. For a little more comfort I have made a few
parameters possible. The description of these can be found in the comment block within the function.

Hope, it will work and will be usefull.

Code: [Select all] [Expand] [Download] (Unbenannt.ahk)GeSHi © Codebox Plus

Return to “Scripts and Functions”

Who is online

Users browsing this forum: JnLlnd and 17 guests