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

Method run

source/src/thread.cpp:155–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 else if (Qi::fun.quickClick.delay == 1) dmax = umax = 1, dmin = umin = 0;
154 while (Qi::run && !m_stop)
155 {
156 Input::State(Qi::fun.quickClick.key, true, Qi::key_info);
157 sleep(Rand(dmax, dmin));
158 Input::State(Qi::fun.quickClick.key, false, Qi::key_info);
159 sleep(Rand(umax, umin));
160 }
161 }
162};
163void QiQuickClickThread::start()
164{
165 QiThreadManager::start<QiQuickClickWorker>();
166}
167
168
169struct QiWindowBindWorker : QiWorker
170{
171 void run() override
172 {
173 WndMatch wm;
174 while (Qi::state)
175 {
176 wm.update();
177 bool match = wm.match(Qi::fun.wndActive.wndInfo.name, Qi::fun.wndActive.wndInfo.clas, Qi::fun.wndActive.wndInfo.proc);
178
179 if (!Qi::run && match)
180 {

Callers

nothing calls this directly

Calls 4

WindowPopFunction · 0.85
SoundPlayFunction · 0.85
updateMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected