*== Printing has begun when PDF name appears in title of Reader window DO WHILE .t. getwindowtext(lnReaderHwnd, @lcWindowTitle, lnWindowTitleLen) IF "- [" $ lcWindowTitle EXIT ENDIF ENDDO *== Printing has finished when PDF name no longer in title DO WHILE .t. lcWindowTitle = SPACE(50) getwindowtext(lnReaderHwnd, @lcWindowTitle, lnWindowTitleLen) IF ! "- [" $ lcWindowTitle EXIT ENDIF ENDDO