Search the Community
Showing results for tags 'automationeventhandler'.
Hi, I am trying to catch closing of a window via the UIA. End goal is to detect closing of a Chrome's tab, but currently I am having issues with the window created with GUICreate. I have modified example from UI Automation Events . I added GUI to show issues. Inside this GUI AutomationEventHandler is attached to all buttons. There are two buttons created by the script. One displays the message while the other closes the GUI. There are also buttons from the title bar. I attached automation event handlers to those buttons too. Currently script notifies me if I click on "OK" bu