!7 static JLabel lblText; sS phoneIP; p { swing { setConsoleWidth(800); setConsoleHeight(600); centerConsole(); consoleFont(sansSerif(40)); wordWrapConsole(); consoleMaxChars(1000); } print("Waiting for phone to come online..."); while licensed { L possiblePhones = empBlast(); phoneIP = first(possiblePhones); if (phoneIP != null) break; sleepSeconds(1); } print("Using phone: " + phoneIP); S last = ""; swing { manualConsole(); //consoleTextArea().setAlign lblText = jcenteredlabel(); lblText.setFont(sansSerif(40)); replaceComponent(consoleTextArea(), lblText); } repeat with sleep 1 { S s = sendToPublicCommBotSilently(phoneIP, forward("Recognizer.", "text")); s = substring(s, smartIndexOf(s, ":")+1); //S ss = dropPrefixTrim(last, s); S ss = joinLines(takeLast(12, javaTokC(s))); last = s; if (nempty(ss)) { setText_htmlencode(lblText, ss); awt { enclosingScrollPane(lblText).scrollRectToVisible(new Rect(0, 10000, 1, 1)); } } } }