!7 module WatchModule > DynPrintLogAndEnabled { int interval = 200; S moduleID; transient BufferedImage lastImage; start { doEvery(interval, r { if (!enabled) ret; O mod = dm_getModule(moduleID); if (mod == null) ret; BufferedImage img = dm_moduleScreenShot_noFocus_justContents(mod); try { if (lastImage != null && !imagesIdentical(img, lastImage)) printWithMilliseconds("CHANGE!"); } finally { lastImage = img; } }); } visualize { ret northAndCenterWithMargins( dm_moduleSelectorComboBox_justID(dm_fieldLiveValue('moduleID)), super.visualize()); } }