please include function shootScreen2. static void shootScreenAsPNGFile(File f) ctex { if (shootScreen_useScrot) { if (!isOnPATH("scrot")) shootScreen2_fallback(); if (shootScreen_useScrot) { try { mkdirsFor(f); S cmd = "scrot " + bashQuote(f); S out = backtick(cmd); if (f.exists()) ret; shootScreen2_fallback(); } catch e { print(e); shootScreen2_fallback(); } } } savePNG(f, new Robot().createScreenCapture(screenRectangle())); }
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: | 489 / 491 |
Version history: | 4 change(s) |
Referenced in: | [show references] |