so hättest du schonmal die maus im 5 ms takt gefrezzt xD :
int a(1);
int b(1);
for(int i=0;a==b;i=i+0)
{
SetCursorPos(500,500);
Sleep(5);
}