Uses 911K of libraries. Click here for Pure Java version (8822L/45K).
!7 cmodule PrtSc > DynPrintLogAndEnabled { switchable File directory; switchable bool infoBox = true; start { if (directory == null) setField(directory := desktopDir("Screenshots")); print("Saving screenshots to " + directory); dm_vmBus_onMessage_q keyDown(voidfunc(int code, int modifiers) { if (enabled && code == 3639 && modifiers == 0) { File f = newFile(directory, "Screenshot-" + ymd_minus_hms() + ".jpg"); print("Saving " + f); saveJPEG(f, shootScreen2()); if (infoBox) infoBox(renderFileInfo(f)); } }); } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029641 |
| Snippet name: | Make Screenshot On PrtSc |
| Eternal ID of this version: | #1029641/6 |
| Text MD5: | 8566b380916926bf8e01aa98250d6f30 |
| Transpilation MD5: | 104a8220db2746ac749f4fd5af352d19 |
| 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: | 2020-09-03 18:12:47 |
| Source code size: | 619 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 451 / 6682 |
| Version history: | 5 change(s) |
| Referenced in: | -