Uses 911K of libraries. Click here for Pure Java version (8822L/45K).
1 | !7 |
2 | |
3 | cmodule PrtSc > DynPrintLogAndEnabled {
|
4 | switchable File directory; |
5 | switchable bool infoBox = true; |
6 | |
7 | start {
|
8 | if (directory == null) |
9 | setField(directory := desktopDir("Screenshots"));
|
10 | print("Saving screenshots to " + directory);
|
11 | |
12 | dm_vmBus_onMessage_q keyDown(voidfunc(int code, int modifiers) {
|
13 | if (enabled && code == 3639 && modifiers == 0) {
|
14 | File f = newFile(directory, "Screenshot-" + ymd_minus_hms() + ".jpg"); |
15 | print("Saving " + f);
|
16 | saveJPEG(f, shootScreen2()); |
17 | if (infoBox) infoBox(renderFileInfo(f)); |
18 | } |
19 | }); |
20 | } |
21 | } |
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: | 450 / 6681 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |