!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(); if (empty(possiblePhones)) { print("No activated phone found!"); ret; } 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 = join(" ", takeLast(12, javaTokC(s))); last = s; if (nempty(ss)) setText(lblText, ss); } }