pure kirk Posted September 2, 2012 Share Posted September 2, 2012 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. Quote Link to comment Share on other sites More sharing options...
MarkD Posted September 2, 2012 Share Posted September 2, 2012 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. Quote Link to comment Share on other sites More sharing options...