!7 static JLabel lblText; sS phoneIP; p { swing { setText_opt = false; setConsoleWidth(400); setConsoleHeight(500); consoleFrame().setLocation(100, 100); consoleFont(sansSerif(40)); wordWrapConsole(); consoleMaxChars(1000); } while licensed { phoneIP = waitForPhone(); if (phoneIP == null) ret; setConsoleTitle(phoneIP); S last = ""; swing { manualConsole(); lblText = jcenteredlabel(); lblText.setFont(sansSerif(40)); replaceComponent(consoleTextArea(), lblText); } repeat with sleep 1 { S s = sendToPublicCommBot/*Silently*/(phoneIP, forward("Recognizer.", "text")); s = substring(s, smartIndexOf(s, ":")+1); last = s; if (nempty(last)) { setText_htmlencode(lblText, s); setConsoleTitle(or2(join(" ", takeLast(2, javaTokC(s))), "[Speech]") + " - " + phoneIP); awt { lblText.scrollRectToVisible(new Rectangle(0, 10000, 1, 1)); } } } } }