Original Post
I'm trying to use SendInput here, but it doesn't do the selected mouse operation. Same thign when I try to make it click as well. It compile and everything just doesn't move the mouse. Any help appreciated. [Edited by - Arbaxas on January 12, 2005 4:45:50 PM]
#include <windows.h>
#include <winable.h>
int main()
{
tagINPUT *Input;
Input = new tagINPUT;
Input->type = INPUT_MOUSE;
Input->mi.dwExtraInfo = 0;
Input->mi.dy = 0;
Input->mi.dx = 100;
Input->mi.mouseData = 0;
Input->mi.time = 0;
Input->mi.dwFlags = MOUSEEVENTF_MOVE;
SendInput(1,Input,sizeof(Input));
}