Advertisement
Guest User

Untitled

a guest
May 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. program New;
  2. var
  3. i:integer;
  4. ibmp: TSCARBitmap;
  5. eqx1, eqx2, eqy1, eqy2: Integer;
  6. bpx1, bpx2, bpy1, bpy2: Integer;
  7. x, y: Integer;
  8. begin
  9. i:=1;
  10. eqx1 := 0;
  11. eqx2 := 1920;
  12. eqy1 := 0;
  13. eqy2 := 1080;
  14. bpx1 := 0;
  15. bpx2 := 1920;
  16. bpy1 := 0;
  17. bpy2 := 1080;
  18.  
  19. ibmp := TSCARBitmap.Create('');
  20. ibmp.LoadFromBmp('E:\iron.bmp');
  21.  
  22. repeat
  23. begin
  24. wait(5000);
  25. if FindBitmap(x, y, ibmp,eqx1, eqy1, eqx2, eqy2) then
  26. begin
  27. ClickMouse(40,750,mbleft);
  28. wait(500);
  29. ClickMouse(x+30,y+30,mbleft);
  30. end;
  31. wait(3500);
  32. ClickMouse(1649,119,mbleft);
  33. wait(18000);
  34. if FindBitmap(x, y, ibmp,eqx1, eqy1, eqx2, eqy2) then
  35. begin
  36. ClickMouse(40,750,mbleft);
  37. wait(500);
  38. ClickMouse(x+30,y+30,mbleft);
  39. end;
  40. wait(3500);
  41. ClickMouse(1564,124,mbleft);
  42. wait(43000);
  43. end;
  44. until
  45. i=5;
  46. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement