Please don't make double posts. I removed your other thread, which was in the wrong forum anyway.

To set the coordinates of the mouse, you can include windows.h and use SetCursorPos(x,y). You needn't create a plugin for this.