Libraryless. Click here for Pure Java version (14613L/101K).
!7 sclass ImageSaver extends DynPrintLog { transient File latestSaved; start { dm_requireModule("#1016673/LiveWebCam"); doEvery(10000, r saveDefault); } void saveDefault { O mod = dm_getModule(dm_findModule("#1016673/LiveWebCam")); File file = javaxDataDir("Web Cam Snapshots/live-" + dateWithSecondsForFile() + ".jpg"); saveJPEGVerbose(file, (BufferedImage) call(mod, 'getImage)); latestSaved = file; } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017736 |
Snippet name: | WebCam Image Saver [saves an image every 10 seconds] |
Eternal ID of this version: | #1017736/3 |
Text MD5: | 255080a29c412e9a06e375c2f040a90a |
Transpilation MD5: | adf5968059a8801293649e8ed71dbf0c |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-14 17:07:50 |
Source code size: | 462 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 538 |
Version history: | 2 change(s) |
Referenced in: | -