1 | static S screenshotBot(S s) {
|
2 | new Matches m; |
3 | |
4 | if "screenshot" |
5 | ret structure(ll("png", toPNG(shootScreen2())));
|
6 | |
7 | if "screen size" |
8 | ret structure(ll(screenWidth(), screenHeight())); |
9 | |
10 | if "screenshot xywh * * * *" {
|
11 | Rect r = new Rect(parseInt($1), parseInt($2), parseInt($3), parseInt($4)); |
12 | ret structure(ll("png", toPNG(shootScreen2(r))));
|
13 | } |
14 | |
15 | null; |
16 | } |
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: | 696 / 734 |
| Referenced in: | [show references] |