| 76 | } |
| 77 | else |
| 78 | { |
| 79 | Qi::curBlock += macro->curBlock; |
| 80 | if (Qi::run || Qi::debug) |
| 81 | { |
| 82 | interpreter.setActions(macro->acEnd); |
| 83 | interpreter.ActionInterpreter(macro->acEnd); |
| 84 | } |
| 85 | Qi::curBlock -= macro->curBlock; |
| 86 | } |
| 87 | } |
| 88 | catch (std::runtime_error e) { QiTr::UnBlock(); macro->script_interpreter.showError(e.what(), std::string("位于初始化脚本")); } |
| 89 | |
| 90 | macro->script_interpreter.clearProperty(); |
| 91 | macro->script_interpreter.setWorker(nullptr); |
| 92 | } |
| 93 | }; |
| 94 | void QiMacroThread::start(Macro* macro, bool running) |
| 95 | { |
| 96 | if (macro->wndState) |
| 97 | { |
| 98 | macro->wndInput.wnd = macro->wndInfo.wnd; |
| 99 | macro->wndInput.child = macro->wndInfo.child; |
| 100 | if (!macro->wndInput.active()) |
| 101 | { |
| 102 | macro->wndInfo.update_fromName(); |
| 103 | macro->wndInput.wnd = macro->wndInfo.wnd; |
| 104 | if (!macro->wndInput.wnd) macro->wndInput.wnd = (macro->wndInfo = QiFn::WindowSelection()).wnd; |
no test coverage detected