Transpiled version (1614L) is out of date.
!747 !pcall m { static S botID = "#1001756"; static S botName = "Get Selected Table Line Helper Bot"; static S cmd = "get selected table line as map"; p { new TreeMap<int, S> results; for (DialogIO vm : talkToAllOtherVMs()) { pcall { int vmPort = vm.getPort(); Map<Number, S> bots = (Map) safeUnstructure(vm.ask("list bots")); print("VM " + vmPort + " bots: " + structure(bots)); if (!containsBot(bots, botName)) { print("Injecting bot."); injectTo(vmPort, botID); int safetyCount = 0; while (!containsBot((Map) safeUnstructure(vm.ask("list bots")), botName)) { if (safetyCount >= 100) fail("bot did not start"); sleep(500); } } S result = vm.ask("please forward to bot *: *", botName, cmd); results.put(vmPort, result); } vm.close(); } // include myself Component focus = getFocusOwner(); if (focus instanceof JTable) results.put(myVMPort(), structure(getSelectedLineAsMap((JTable) focus))); Map result = getResult(results); print("Result: " + structure(result)); } static Map getResult(Map<int, S> results) { for (S s: results.values()) if (structIsMap(s)) ret (Map) unstructure(s); ret null; } }
Began life as a copy of #1001738
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment