From this stackoverflow
#include <windows.h>
int main() {
mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0, 0);
Sleep(40);
mouse_event(MOUSEEVENTF_MOVE, 0, -1, 0, 0);
}From this stackoverflow
#include <windows.h>
int main() {
mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0, 0);
Sleep(40);
mouse_event(MOUSEEVENTF_MOVE, 0, -1, 0, 0);
}