> > > > Maybe for that app when the window first opens it doesn't yet have the file > > name in the caption. > > > > From help: > "You can automatically run commands each time that a WINDOW with a specified > caption is first created." > > It said: "WINDOW" not "APPLICATION".
For some applications, windows are created with a default caption and then the caption is updated. PowerPro might see the window before the update and so see only the default caption. Work with the cases where it works. Try displaying the caption of that window instead of moving it. Although this is not a foolproof technique, it should show you what PowerPro is seeing. So replace Windown Posiktion command by something like win.debug(win.caption(lastautorunhandle))
