Libraryless. Click here for Pure Java version (5312L/36K/123K).
!7 p { ExternalAI findDice = loadWinnerAI(#1006908); ExternalAI findCloseIcon = loadWinnerAI(#1006901); MouseMover mover = new MouseMover().enable(); try { while (!mover.hasInterference()) { BufferedImage img = shootScreen2(); Pt p = findCloseIcon.call(img); if (p != null) mover.click(p); else { p = findDice.call(img); if (p == null) infoMessage("No dice!"); else mover.click(p); } sleepSeconds(1); } } finally { mover.disable(); } }
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: | 510 / 744 |
Version history: | 21 change(s) |
Referenced in: | [show references] |