Sequence Posted May 14, 2012 Share Posted May 14, 2012 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] Quote Link to comment Share on other sites More sharing options...
Wanted Posted May 14, 2012 Share Posted May 14, 2012 WriteLn(GetColor(665, 441)); Must not be 6062216 Quote Link to comment Share on other sites More sharing options...
Sequence Posted May 14, 2012 Author Share Posted May 14, 2012 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) Quote Link to comment Share on other sites More sharing options...
Wanted Posted May 14, 2012 Share Posted May 14, 2012 Looks like it's not turning to 6062216 otherwise it would say 'yes' Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted May 14, 2012 Share Posted May 14, 2012 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] Quote Link to comment Share on other sites More sharing options...
Sequence Posted May 14, 2012 Author Share Posted May 14, 2012 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 Quote Link to comment Share on other sites More sharing options...