Exemple #1
0
int
main(int argc,char** argv){
  VNC_Client vnc;
  vnc.init(argv[1],atoi(argv[2]),argv[3]);
  char buf[1024];
  gets(buf);
  vnc.close();
  return 0;
}
Exemple #2
0
int
main(int argc,char** argv){
  VNC_Client vnc;
  if(argc<4){
    printf ("Usage: ./mousemove hostname port(5900+vncport) password\n");
    return 1;
  }
  
  vnc.init(argv[1],atoi(argv[2]),argv[3]);
  for(int i=0;i<1024*100;i++){
    vnc.set_point(i%1024,i/1024,0);
  }
  vnc.close();
  return 0;
}