MCPcopy Create free account
hub / github.com/SeaEpoch/MouseClick / leftRandomClick

Method leftRandomClick

src/utils/clicker.cpp:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Clicker::leftRandomClick()
123{
124 POINT mouse_pos;
125
126 while (_run) {
127 GetCursorPos(&mouse_pos);
128 mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, mouse_pos.x, mouse_pos.y, 0, 0);
129 msleep(QRandomGenerator::global()->bounded(0, _max_random_interval));
130 }
131}
132
133void Clicker::rightRandomClick()
134{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected