diff --git a/README.md b/README.md index 5a9df32..26a1d28 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,20 @@ This is to simulate an activity from the user so that apps like Teams don't swit It uses a thread so the user still can click the Stop button to regain control. -Use it at your own risks and responsabilities. \ No newline at end of file +Use it at your own risks and responsabilities. + +2029-09-29 +Initial push + +2029-09-29 +Requires to add a click at 0:0 each 1 minute as moving the mouse is not enough for Teams + +procedure ClickAt(X, Y: Integer); +begin + // Move cursor to specific screen coordinates + SetCursorPos(X, Y); + + // Simulate mouse button press and release + mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); + mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); +end;