!7 cmodule DiscordFan > DynVisualBot { transient new Thinker thinker; switchable double waitBeforeClick = 1.0; switchable double patience = 1.0; void started { doEvery(1.0, rEnter { thinker.think() }); } class Thinker { WaitForStableValue wait = new(patience); void think { if (!enabled) ret; ImageInfo info = latestWithAOA; if (info == null) ret; // man weiß ja nie... //print("Keys", sfu(keys(info.foundProtos))); Segment s = mapGet(info.foundProtos, quote("Open discord")); Rect r = s == null ? null : s.rect; print(+r); dm_moveMouseAndClick(wait.setAndClear(r), "Discord button"); } } }