Advertisement
Guest User

Untitled

a guest
May 10th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 2.60 KB | None | 0 0
  1. @@(*
  2. @@   Yellow lines mean you should read them.
  3. @@   Go read some tut's also at the forums.
  4. @@*)
  5.  
  6. program New;
  7. {.Include SRL/SRL.Scar}
  8. Var
  9. BankSymbol : Integer;
  10. BankBooth : Integer;
  11.  
  12. Const
  13. Username = 'King Shado21';
  14. Password = '';
  15.  
  16. procedure LoadBitmaps;
  17. begin
  18.   BankSymbol := BitmapFromString(13, 13, 'beNp1kcEJgDAMRXMVL2' +
  19.      '7gwZ28uIZDFQXvjiAeXMEhvNcPH35DaMOnlOTxExIzRtcP0HU/5z5' +
  20.      'T+DNpVhgkxeScAkwsMNK6jGk7UApWLPGliInx2PdOBCgBwgjwhQLg' +
  21.      'ZwND+aYt0rdueVaxsLQqpuXLpzobN6wzseQZyFzQFkm/2HLTH0SaC' +
  22.      'Gs=');
  23.  
  24.   BankBooth := BitmapFromString(158, 18, 'beNrtWVsSwjAI' +
  25.    'zO28gL/e/xhxxjqVBpZXqtVKho88GkJ3CWC9Xm7XkpKSkpJvkf5oa' +
  26.    'PgTNucsb71TSRtjbp/Un9a8ANJaE4ffzOxgZNTyJ6dLmwB/1ZN+IM' +
  27.    '2jrrmYnQT/w8xSPT/HrBlXi9l5Zvu2DbtCqQ0pEdlcYiQ6azVSnNQ' +
  28.    '1ozxLTxTzL8rLr+0gpCvZHC2ZBnhKBYXZtU/bMM8xVDzB5ALxIhpA' +
  29.    'l0xt3LFRnjXmGYnIPUzqkwYQHJBJ0Tsrbhmeb6yJnuDnQgm8fYtkm' +
  30.    'lke1vh1FgEX4JUCI39YN8DTRz5AV808a95N9EamJ8wz6/G3KLMGg6' +
  31.    'iPq+sZBp3Mopy7QkTJ8rBDL6azKNqRWSW2i+73bsCNPHsEswgH5W6' +
  32.    'ifOqpoBD+YsbUKyjkMzzaQGatCioBfvKgyHyovOf5EU2aS7Bul3AW' +
  33.    'lYhDbtjQFy1Rfg1F3y7ajx4UmncefexHhpOd+M+fqd+NMw/Rxexpb' +
  34.    'pC/dC/Z7R+KT0EdqgHOI3fOAcf9');
  35. end;
  36.  
  37.  
  38.  
  39. procedure login; //Try to use Login(); instead.
  40. begin;
  41. @@  ClickMouseSpline(449, 288, 10, 3, True);  //BAD! Use Mouse(x, y, ranx, rany, (True if leftclick)) instead.
  42.   Wait(1000+Random(3000));
  43.   WriteLn('Clicked Existing User Button');
  44. @@  SendKeysWait(Username+Chr(13), 200, 100);
  45.   Wait(1000+Random(1000));
  46. @@  SendKeysWait(Password, 200, 100);
  47. end;
  48.  
  49. procedure finishlogin;
  50. begin
  51.   ClickMouseSpline(302, 320, 10, 5, True);
  52.   Wait(5000+Random(2000));
  53.   ClickMouseSpline(333, 337, 10 , 4, True);
  54.   Wait(3000+Random(1000));
  55. end;
  56.  
  57. @@procedure clearbug; //Not really needed?
  58. begin
  59.   ClearDebug
  60. end;
  61.  
  62.  
  63. @@procedure FreeBMPs;
  64. @@begin
  65. @@  FreeBitmap(BankSymbol);
  66. @@  FreeBitmap(BankBooth);
  67. @@end;
  68.  
  69.  
  70. procedure findbit;
  71. Var
  72.   x, y :integer;
  73. begin;
  74.   FindBitmapToleranceIn(BankSymbol, x, y, 536, 12, 711, 158, 25);
  75. end;
  76.  
  77. procedure openbankscreen;
  78. Var
  79.   Points :integer;
  80.   x, y :integer;
  81.   a, b :integer;
  82. begin;
  83.   MakeCompass('n');
  84.   FindColorsSpiralTolerance(x, y, Points, 4679037, 5, 5, 514, 336, 70);
  85.   FindBitmapToleranceIn(BankBooth, a, b, 536, 12, 711, 158, 25);
  86. @@  ClickMouseSpline(X, Y, 4, 4, True); //USE Mouse(x, y, ranx, rany, (True if click left))
  87.   Wait(1000+Random(500));
  88. @@  ClickMouseSpline(a, b, 4, 4, true); //Ditto
  89. end;
  90.          
  91.          
  92. begin
  93.   SetUpSRL;
  94.   clearbug;
  95.   loadBitmaps;
  96.   ActivateClient;
  97.   login;
  98.   finishlogin;
  99.   findbit;
  100.   openbankscreen;
  101. @@  FreeBMPs;
  102. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement