gary rizzo

gary rizzo

  • NA
  • 1
  • 2k

WAKFU automated program

Aug 14 2012 2:45 PM
i'm currently implementing an automated program that picks up herb seeds in WAKFU. I have done a lot of research and am almost done. The only issue i have is with the mouse click. when i click the mouse on the "Harvest icon" it seems that the mouse ignores the harvest icon and presses on the ground, for which my character moves instead of harvesting
please reference this video i uploaded.
http://youtu.be/W69hKqtH9HE 
The code for mouse clicking
        public void MouseClickLeft()
   
{
       
int x = Cursor.Position.X;
       
int y = Cursor.Position.Y;
        mouse_event
(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
        mouse_event
(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
   
}
   
public void MouseClickRight()
   
{
       
int x = Cursor.Position.X;
       
int y = Cursor.Position.Y;
        mouse_event
(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0);
        mouse_event
(MOUSEEVENTF_RIGHTUP, x, y, 0, 0);
   
}

           
Point point3 = new Point( points[0].X +60 , points[0].Y - 60);

       
LinearSmoothMove(point3, delayt);

       
MouseClickLeft();
Please tell me if you need any more code.
Thanks!