CODE
void main()
{
...
...
..
mouseClass mc;
mc.mouse_event(100,100);
}
void mouseClass::mouse_move(int xPosition, int yPosition)
{
mouse_event(MOUSEEVENT_MOVE, xPosition, yPosition, 0, 0);
}
So far the function is working, but is there a way that I change the speed of the mouse so that I can actually see it's moving to the given position because right now all it does, the cursor will disappear then reappear at the given position thus I don't see it's moving. So what can I do if I want to actually see the mouse moving to that giving position? Also another question is that, if I run the same code in different monitor size, my position is way different from each other on the two screens. It seems the position is not corresponding to the current active window itself, so how can I fix that problem?
thanks in advance.
This post has been edited by skyHigh: 1 Oct, 2007 - 07:25 PM