09-19-2008, 03:17 PM
Look in accessible object triggers.
Macro
Trigger $a 22 0 "" "Notepad"
Macro
Trigger $a 22 0 "" "Notepad"
function hwnd idObject idChild
;Acc a.ObjectFromEvent(hwnd idObject idChild)
mes "Notepad minimized"
;recorded this using menu Tools -> Output -> Log -> acc...:
;120. MINIMIZESTART, WINDOW, 0
;;;;ow: class="Notepad", text="Untitled - Notepad"
;;;;ao: role=WINDOW, state=0x168000, name="Untitled - Notepad"