set Mouse to center


Does someone know how I can put my mousecursor to the center of the screen or somewhere else?

I found a method setMousePos(int x, int y) of the class VirtualMouse but how do I use it?

try this:,,

hope that helps,

Yeah thank you that workes :slight_smile: