devilyn Posted August 24, 2010 Share Posted August 24, 2010 i'm trying to detect when an external application is closed by the user. is this possible with autoit? i was looking at _WinAPI_SetWindowsHookEx but no success. Link to comment Share on other sites More sharing options...
Valuater Posted August 24, 2010 Share Posted August 24, 2010 Maybe.. $var = WinList() For $i = 1 to $var[0][0] ; Only display visble windows that have a title If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then MsgBox(0, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1]) EndIf Next Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now