!7 static OCRRecognizeAndTeach ocr; p-subst-autorestart { doIt(); showButton("Again", r-thread { doIt() }); } svoid doIt { cleanUpVar('ocr); ocr = recognizeAndTeachCurrentScreen(); }