// compile with // -framework Carbon #include int main (int argc,char *argv[]) { // close enough! float x=600.0; float y=600.0; if (argc >1) { x=atoi(argv[1]); } if (argc >2) { y=atoi(argv[2]); } CGPoint p=CGPointMake(x,y); CGWarpMouseCursorPosition( p ); return 0; }