| 1498 | }; |
| 1499 | struct QiFunc_clip_write : public QiFunc |
| 1500 | { |
| 1501 | QiFunc_clip_write() : QiFunc(1) {} |
| 1502 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1503 | { |
| 1504 | return System::ClipBoardText(String::toWString(args[0].toString()).c_str()); |
| 1505 | } |
| 1506 | }; |
| 1507 | |
| 1508 | struct QiFunc_macro_active : public QiFunc |
| 1509 | { |
| 1510 | QiFunc_macro_active() : QiFunc(1) {} |
| 1511 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1512 | { |
| 1513 | Macro* macro = QiFn::FindMacro(QString::fromStdString(args[0].toString())); |
| 1514 | if (macro) return macro->thread.active(); |
| 1515 | return false; |
| 1516 | } |
| 1517 | }; |
| 1518 | struct QiFunc_macro_start : public QiFunc |
| 1519 | { |
| 1520 | QiFunc_macro_start() : QiFunc(1) {} |
| 1521 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1522 | { |
| 1523 | Macro* macro = QiFn::FindMacro(QString::fromStdString(args[0].toString())); |
| 1524 | if (macro) |
| 1525 | { |
| 1526 | macro->thread.run_start(macro); |
| 1527 | return true; |
nothing calls this directly
no test coverage detected