MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1276–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274 auto wnd = reinterpret_cast<HWND>(args[0].toPointer());
1275 if (!IsWindow(wnd)) return false;
1276 return Window::text(wnd).toStdString();
1277 }
1278};
1279struct QiFunc_wnd_text_set : public QiFunc
1280{
1281 QiFunc_wnd_text_set() : QiFunc(2) {}
1282 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
1283 {
1284 auto wnd = reinterpret_cast<HWND>(args[0].toPointer());
1285 if (!IsWindow(wnd)) return false;
1286 return SetWindowTextW(wnd, args[1].toWString().c_str()) != FALSE;
1287 }
1288};
1289struct QiFunc_wnd_class : public QiFunc

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected