1 | please include function shootScreen2. |
2 | |
3 | static void shootScreenAsPNGFile(File f) ctex { |
4 | if (shootScreen_useScrot) { |
5 | if (!isOnPATH("scrot")) shootScreen2_fallback(); |
6 | if (shootScreen_useScrot) { |
7 | try { |
8 | mkdirsFor(f); |
9 | S cmd = "scrot " + bashQuote(f); |
10 | S out = backtick(cmd); |
11 | if (f.exists()) ret; |
12 | shootScreen2_fallback(); |
13 | } catch e { |
14 | print(e); |
15 | shootScreen2_fallback(); |
16 | } |
17 | } |
18 | } |
19 | savePNG(f, new Robot().createScreenCapture(screenRectangle())); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009912 |
Snippet name: | shootScreenAsPNGFile |
Eternal ID of this version: | #1009912/5 |
Text MD5: | 4d5e59d4a15d9b288f8607ecb482af8e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-25 20:08:18 |
Source code size: | 543 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 490 / 493 |
Version history: | 4 change(s) |
Referenced in: | [show references] |