Uses 911K of libraries. Click here for Pure Java version (3847L/18K).
!7 compact module SendAIBar > DynPrintLog { S sendTo; bool enabled, fire; start { dm_onTopInputChange(voidfunc(fS s) { if (!enabled || fire) ret; final LS ids = aggressivelyCollectPossibleComputerIDs(sendTo); if (empty(ids)) ret; switch to q(); print("Sending: " + s); for (S computerID : ids) dm_privateChat_evalOnOtherMachine(computerID, "dm_setAIBarText(" + quote(s) + ");"); }); dm_onTopInput(voidfunc(fS s) { if (!enabled || !fire) ret; final LS ids = aggressivelyCollectPossibleComputerIDs(sendTo); if (empty(ids)) ret; switch to q(); print("Sending: " + s); for (S computerID : ids) dm_privateChat_evalOnOtherMachine(computerID, "dm_setAIBarTextAndFire(" + quote(s) + ");"); }); } visualize { ret centerAndSouthWithMargins(super.visualize(), centerAndEast(withLabel("Send to:", withToolTip("One or more computer IDs (use commas to separate)", dm_fieldTextField('sendTo))), hstackWithSpacing( dm_fieldCheckBox('enabled), dm_fieldCheckBox('fire)))); } }
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019658 |
| Snippet name: | Send AI Bar To Other Machine(s) |
| Eternal ID of this version: | #1019658/13 |
| Text MD5: | ae367bf5100ad0545786f26ebf26e4e2 |
| Transpilation MD5: | ab63a1a26b05bed13e17283298a6b7e6 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-01-03 03:19:21 |
| Source code size: | 1157 bytes / 36 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 536 / 4974 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |