Libraryless. Click here for Pure Java version (15567L/108K).
!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()); } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020171 |
Snippet name: | Watch Module Screenshot For Changes [OK] |
Eternal ID of this version: | #1020171/8 |
Text MD5: | 728dfbaee9c3d3bcf9b02c6d1f868f24 |
Transpilation MD5: | 3dae2a6d602e4cae1cbdf5638bcfd466 |
Author: | stefan |
Category: | javax / stefan's os / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-09 21:21:30 |
Source code size: | 675 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 468 |
Version history: | 7 change(s) |
Referenced in: | -