!7 static long timeout = 5000; static int maxEntries = 10; static AutoComboBox3 box; static JComboBox cbAction; p-substance { 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"); onEnterWithClose(box, f doIt); setY(200, showFrameFlat_minWidth(800, centerAndEast(box, jline(cbAction, jbutton("OK", f doIt))))); awtLater(box, 500, r { focus(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_user(s) ? "OK" : "!*&$"); else openPlatformBrowser(smartBot_topicLink(s)); }