Hi,
Excuse me for my bad english level, i'm french student
I develop a c++ application for move and clic automatically on application's buttons with my cursor who can't support command line, but GUI only.
With windows.h, I tested this:
SetCursorPos(X,Y);
Sleep(500);
Mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
Sleep(500);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
This code of my console application work only if is in foreground ( focused )
So if my console application has not focus, my mouse can't move..
Are you solution for resolve this?
Best regards
Sébastien FAVIER