Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function SetForegroundWindow(hwnd: integer) : Boolean; stdcall;
  2. external 'user32.dll';
  3.  
  4. function captcha:boolean; begin
  5. if engine.dlgtext.contains('Refresh') or
  6. engine.dlgtext.contains('Captcha') or
  7. engine.dlgtext.contains('60 seconds') or
  8. engine.dlgtext.contains('Bot') then begin
  9. SetForegroundWindow(Engine.GameWindow);
  10. PlaySound(exepath+'\sounds\'+'sirena'+'.wav');
  11. delay(500);
  12. StopSound;
  13. end;
  14. end;
  15. begin
  16. while true do begin
  17. delay(300);
  18. captcha();
  19. end;
  20. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement