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

Method leftClick

src/utils/clicker.cpp:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88#if defined(Q_OS_WIN)
89void Clicker::leftClick()
90{
91 POINT mouse_pos;
92
93 while (_run) {
94 GetCursorPos(&mouse_pos);
95 mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, mouse_pos.x, mouse_pos.y, 0, 0);
96 msleep(_interval);
97 }
98}
99
100void Clicker::rightClick()
101{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected