How to move mouse with c++
问题 I want to move the mouse cursor with a c++ script. I am using Visual C++ 2010 Express in a Windows 7 inside Parallels and I created a console application. I know SetCursorPos method but it is just not working (it does nothing). I managed to simulate clicks with SendInput but it does not actually move the mouse. This is my code: #include <Windows.h> #include <Tlhelp32.h> #include <stdio.h> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <time.h> void