zamaro

Untitled

Apr 4th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. function ColorLocate(what: string): boolean;
  2. var
  3. CTS: Integer;
  4. TPA: Tpointarray;
  5. begin
  6. writeln('hi');
  7. cts := GetColorToleranceSpeed;
  8. ColorToleranceSpeed(2);
  9. case What of
  10. 'RangeScreen':
  11. begin
  12. writeln('hi2');
  13. SetColorSpeed2Modifiers(0.05, 0.41);
  14. FindColorsTolerance(TPA, 5334901, 482, 36, 492, 45, 12);
  15. DebugTPA(tpa,'');
  16. wait(1000);
  17. end;
  18. 'SkillSCreen':
  19. begin
  20. writeln('hi2');
  21. SetColorSpeed2Modifiers(0.02, 1.48);
  22. FindColorsTolerance(TPA,8042720 , 480, 5, 513, 35, 4);
  23. DebugTPA(tpa,'');
  24. wait(1000);
  25. end;
  26. end;
  27. writeln('hi3');
  28. ColorToleranceSpeed(CTS);
  29. SetColorSpeed2Modifiers(0.02, 0.2);
  30. if (length(tpa) > 0) then
  31. begin
  32. writeln('hi4');
  33. result := true;
  34. end;
  35. end;
  36.  
  37.  
  38. Begin
  39. setupsrl;
  40. SetupReflection;
  41. repeat
  42. Wait(400);
  43. if ColorLocate('SkillSCreen') then
  44. writeln('yes');
  45.  
  46. until (false);
  47. end.
Advertisement
Add Comment
Please, Sign In to add comment