svoid sfBot_p { consoleSetInput("sf"); callStaticAnswerMethod("sf"); swing { JButton btn; showControls(jcenteredLine(btn = jbutton("Add new standard function", r-thread { sfBot_doIt() }))); btn.requestFocus(); } } static S sfBot_answer(S s) { new Matches m; if "sf *" { S id = m.unq(0); if (l(id) == 4) id = "100" + id; checkMarkAnimation_bottomLeft(addStdFunction(id, true), 2); ret "OK"; } if "sf" { sfBot_doIt(); ret "OK"; } null; } svoid sfBot_doIt { checkMarkAnimation_bottomLeft(addStdFunction(), 2); }