Jump to content
pure kirk

Need help with coordinates

Recommended Posts

Im trying to make a thieving bot for a private server based entirely on colour and some coords, so the problem is that on 1 stall you can get 2 itemshere is the procedure:

procedure sellfeathers;
begin;
 if findcolor(x,y,feathercolour,0,0,screenresx,screenresy) then
begin;
MoveMouse(x,y);
wait(500);
 clickmouse(x,y,true);
 wait(500);
end;
end;

I want to change the y coordinates after the colour is detected by 50.

MoveMouse(x,y down 50);

sorry for being unclear about this.

Link to comment
Share on other sites

I guess you want to click something and click something else 50 lower?

 

MoveMouse(x,y);
MoveMouse(x,(y+50));

 

Or:

MoveMouse(x,y);
k := y+50;
Movemouse(x,k);

 

If it's lower on your screen, it has a higher y.

If it's higher on your screen, it has a lower y.

It's measured from the top left.

 

Don't forget to declare k before using it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...