Jump to content
BryceTheCoder

[RuneScape] Need to know code for seeing color on screen and click it.

Recommended Posts

U can use this method:

[Code]
if findColor(x, y, BankColor, 0, 0, w - 1, h - 1) then
begin
ClickWindMouse(x, y, 5, 5, True);
end;
[/Code]
Or u can make it to a function, that makes it alot easier.
[Code]
function ClickColor(const c, x, y: Integer): integer;
begin
GetClientDimensions(w, h);
if findColor(x, y, c, 0, 0, w - 1, h -1) then
begin
ClickWindMouse(x, y, 2, 2, True);
end;
end;[/Code]

Now all you need to do is write: ClickColor((Color), (x), (y);
and it will click it.

An example:
[Code]
ClickColor(23583, 401, 102);
[/code] Edited by sjesper
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...