Libraryless. Click here for Pure Java version (2340L/15K).
1 | sclass RandomScreenScan { |
2 | int w, h; |
3 | transient Rect lastSent; |
4 | transient int stayMax; |
5 | |
6 | *() {} |
7 | *(int *w, int *h) {} |
8 | |
9 | Rect get(bool foundSomething) { |
10 | ping(); |
11 | if (foundSomething && lastSent != null && stayMax++ < 10) ret lastSent; |
12 | stayMax = 0; |
13 | lastSent = randomScreenRect(w, h); |
14 | print("Screen scan: " + lastSent); |
15 | ret lastSent; |
16 | } |
17 | } |
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: | #1025115 |
Snippet name: | RandomScreenScan |
Eternal ID of this version: | #1025115/6 |
Text MD5: | b59b2cdbfc6e14eee10952ac08028706 |
Transpilation MD5: | f031a26179a63ddf98b9e83d35845265 |
Author: | stefan |
Category: | javax / visual bots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-05 22:35:22 |
Source code size: | 384 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 285 / 692 |
Version history: | 5 change(s) |
Referenced in: | [show references] |