Jump to content
Sequence

GetColor help

Recommended Posts

No matter what I do the code below returns no, I can't get it to find the color.. Am I missing something here?

(I've tried with a lot of different colored stuff)

 

[scar]

If GetColor(665, 441) = 6062216 Then

WriteLn('Yes') Else

WriteLn('No');

[/scar]

Link to comment
Share on other sites

WriteLn(GetColor(665, 441));

 

Must not be 6062216

What? I didn't get that.

 

I want it to say yes if the color is 6062216 is at the coordinates (665, 441) and no if the color isn't at the coordinates. (I'm just using yes and no for testing of course it will be some clicking when I get it to work)

Link to comment
Share on other sites

He is saying you should run a test and see what the color actually is at that point. If the writeln returns any other color than that color then the color is your problem.

 

Run just this code by its self and see what it returns to the debug box

[scar]

Begin

WriteLn(GetColor(665, 441));

end.

[/scar]

Link to comment
Share on other sites

hmm I tried to just use: WriteLn(GetColor(665, 441)); and it returned -1

 

But I figured out it was just the selected window that was buggy or something, when I selected the whole window instead of just a part inside of it, it worked just fine.

 

Thank you :)

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...