"Updating AI Masks" is a pop-up dialog box that processes the photo and once done, it will dismiss by itself.
The process can take anywhere from 2 seconds to 2 minutes.
AgWinMainFrame is the main window.
I want the actions below to occur only processing is done. What is wrong about the code below?
Separately, is there an easier way to debug code that involves loops? Thinking of a less intrusive way to show issues rather than msgboxes/tooltips.
Code: Select all
Loop
{
WinWaitNotActive, Updating AI Masks,, 2
} until (ErrorLevel = 0)
Sleep 200
If WinExist("ahk_class AgWinMainFrame") {
Sleep 300
SendInput ^+d ;deselect photos
Sleep 100
SendInput {Right} ;move to next photo
}