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