| 87 | |
| 88 | #if defined(Q_OS_WIN) |
| 89 | void 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 | |
| 100 | void Clicker::rightClick() |
| 101 | { |
nothing calls this directly
no outgoing calls
no test coverage detected