Uses 1319K of libraries. Click here for Pure Java version (13600L/75K).
1 | !7 |
2 | |
3 | cmodule DiscordFan > DynVisualBot {
|
4 | switchable double patience = 1.0; |
5 | switchable double waitBeforeClick = 1.0; |
6 | transient WaitForStableValue<Rect> wait = new(patience); |
7 | |
8 | // What are we looking for? |
9 | void makeProtos {
|
10 | protoTexts("Open", "Open discord");
|
11 | } |
12 | |
13 | // How do we find it? |
14 | ISegmenter makeSegmenter() {
|
15 | ret segmenterFromAGIBlue("Find things on discordapp.com #1");
|
16 | } |
17 | |
18 | // What do we do when we found it? |
19 | void think {
|
20 | if (!enabled) ret; |
21 | ImageInfo info = latestWithAOA, ret if null; |
22 | //print("Keys", sfu(keys(info.foundProtos)));
|
23 | Rect r = print('r, rect(mapGet(info.foundProtos, quote("Open discord"))));
|
24 | dm_moveMouseAndClick(wait.setAndClear(r), "Discord button", +waitBeforeClick); |
25 | } |
26 | |
27 | // Heart beat! |
28 | void started { doEvery(1.0, rEnter think); }
|
29 | } |
Began life as a copy of #1025026
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: | #1025036 |
| Snippet name: | Discord Fan [shortened 2] |
| Eternal ID of this version: | #1025036/14 |
| Text MD5: | 362910c5aedbe735271a2e67ea4e503a |
| Transpilation MD5: | 8d52ea18997abcdb89982e4fd35f5fd7 |
| Author: | stefan |
| Category: | javax / visual bots |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-01 22:33:09 |
| Source code size: | 840 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 525 / 1153 |
| Version history: | 13 change(s) |
| Referenced in: | [show references] |