Yes I confirm that it works, but I had a lot of difficulties trying to manipulate (moving, hiding, sending text to the controls) this kind of windows, that's why I went with a different solution.
This is some code for the Active Accessibility Hook that will catch the SaveAs dialog:
Code: Select all
#Persistent
#SingleInstance force
OnExit, QUIT
hHook := EWinHook_SetWinEventHook( "EVENT_OBJECT_CREATE", "EVENT_OBJECT_DESTROY", 0, "WinProcCallback", 0, 0
, "WINEVENT_OUTOFCONTEXT" )
Return
QUIT:
EWinHook_UnhookWinEvent(hHook)
ExitApp
WinProcCallback(hWinEventHook, event, hwnd, idObject, idChild, dwEventThread, dwmsEventTime) {
DetectHiddenWindows, On
WinGetClass, sClass, ahk_id %hwnd%
If ( sClass == "#32770" )
MsgBox, TADA!
Return
}
You need [url=
http://ahkscript.org/boards/viewtopic.php?f=6&t=830]this library[/code]