Home>

Limit the range of mouse movement:

//this.cursor=new cursor (this.cursor.handle);
//cursor.position=new point (cursor.position.x, cursor.position.y);
cursor.clip=new rectangle (this.location, this.size);

Unlimit the movement range of the mouse:

screen [] screen=screen.allscreens;
this.cursor=new cursor (cursor.current.handle);
cursor.clip=screen [0] .bounds;
c
  • Previous Parsing uncaught exceptions in Java and nested use of try statements
  • Next WIFI master key password query interface example