Libraryless. Click here for Pure Java version (5312L/36K/123K).
1 | !7 |
2 | |
3 | p { |
4 | ExternalAI findDice = loadWinnerAI(#1006908); |
5 | ExternalAI findCloseIcon = loadWinnerAI(#1006901); |
6 | |
7 | MouseMover mover = new MouseMover().enable(); |
8 | try { |
9 | while (!mover.hasInterference()) { |
10 | BufferedImage img = shootScreen2(); |
11 | Pt p = findCloseIcon.call(img); |
12 | if (p != null) |
13 | mover.click(p); |
14 | else { |
15 | p = findDice.call(img); |
16 | if (p == null) |
17 | infoMessage("No dice!"); |
18 | else |
19 | mover.click(p); |
20 | } |
21 | sleepSeconds(1); |
22 | } |
23 | } finally { |
24 | mover.disable(); |
25 | } |
26 | } |
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: | #1006910 |
Snippet name: | Automation: Open & Close JavaX Window Alternatingly [WORKS, interrupt by mouse movement] |
Eternal ID of this version: | #1006910/22 |
Text MD5: | aad7f0fdbb63c8f5406f090f10c3d195 |
Transpilation MD5: | 8820d7ddbca37b8035dd63f0f83fc038 |
Author: | stefan |
Category: | javax / automation |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-15 08:37:00 |
Source code size: | 580 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 511 / 745 |
Version history: | 21 change(s) |
Referenced in: | [show references] |