Libraryless. Click here for Pure Java version (14826L/101K).
!7 sclass RememberAllWords > DynPrintLog { new MultiSet<S> wordSet; // synchronized int interval = 5000; void start { doEveryAndNow(interval, r doIt); } void doIt { temp enter(); please include function getText. for (Component c : allComponentsInWindows()) { S text = (S) callOpt(mc(), 'getText, c); // Reflection abuse! if (nempty(text)) { L<S> words = words2_noNumbers(text); if (nempty(words)) { wordSet.addAll(words); change(); } } } print(n2(wordSet.uniqueSize(), "word") + ", " + n2(wordSet.size(), "occurrence")); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016967 |
Snippet name: | Remember Words Seen In Any Swing Component, Multi Set Version |
Eternal ID of this version: | #1016967/6 |
Text MD5: | 96773fc5e2b1afff941ef0b0b0e3a966 |
Transpilation MD5: | 73dca9eff82ba7455cdf578ddbd6e8c6 |
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: | 2018-07-09 16:01:30 |
Source code size: | 654 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 530 |
Version history: | 5 change(s) |
Referenced in: | [show references] |