!7 static long timeout = 5000; static int maxEntries = 10; static AutoComboBox3 box; static JComboBox cbAction; p-noconsole { autoRestart(); smartBot_autoComplete_defaultMaxEntries = maxEntries; smartBot_autoComplete_defaultHardTimeout = timeout; box = autoComboBox3(f smartBot_autoComplete); centerComboBox(box); setFontSize(box, 20); setComboBoxListFontSize(box, 20); cbAction = jcombobox("Say in Smart Bot's Chat", "Open topic in browser"); onEnter(box, f doIt); setY(200, showFrameFlat_minWidth(800, centerAndEast(box, jline(cbAction, jbutton("OK", f doIt))))); requestFocus(box); } sS input() { ret getText(box); } svoid doIt { S action = getText(cbAction); S s = input(); if (eqic(action, "Say in Smart Bot's Chat")) infoBox(postToSmartBotsChat(s) ? "OK" : "!*&$"); else openPlatformBrowser(smartBot_topicLink(s)); }