!7 static long timeout = 5000; static int maxEntries = 10; static AutoComboBox3 box; p-noconsole { autoRestart(); smartBot_autoComplete_defaultMaxEntries = maxEntries; smartBot_autoComplete_defaultHardTimeout = timeout; box = autoComboBox3(f smartBot_autoComplete); centerComboBox(box); setFontSize(box, 20); setComboBoxListFontSize(box, 20); onEnter(box, r { openPlatformBrowser(smartBot_topicLink(getText(box))) }); setY(200, showFrameFlat_minWidth(500, vstack(withMargin(centeredline( jbutton("Send in Stefan's Chat", r { infoBox(postToStefansChat(input()) ? "OK" : "!*&$") }), jbutton("Send in Smart Bot's Chat", r { infoBox(postToSmartBotsChat(input()) ? "OK" : "!*&$") }))), box))); requestFocus(box); } sS input() { ret getText(box); }