static S screenshotBot(S s) { new Matches m; if "screenshot" ret structure(ll("png", toPNG(shootScreen2()))); if "screen size" ret structure(ll(screenWidth(), screenHeight())); if "screenshot xywh * * * *" { Rect r = new Rect(parseInt($1), parseInt($2), parseInt($3), parseInt($4)); ret structure(ll("png", toPNG(shootScreen2(r)))); } null; }
Began life as a copy of #1006181
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006484 |
| Snippet name: | screenshotBot - supply screenshots on demand to the outside |
| Eternal ID of this version: | #1006484/1 |
| Text MD5: | d57795cfdb5b1c60843dc22519af2b71 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-01-10 13:54:19 |
| Source code size: | 399 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 694 / 733 |
| Referenced in: | [show references] |