Advertisement
Guest User

Untitled

a guest
May 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.09 KB | None | 0 0
  1. procedure TForm1.Timer1Timer(Sender: TObject);
  2. var Results:Boolean;
  3. begin
  4.   Results := False;
  5.   try
  6.     SaveResourceAsFile(GetTmpDir + 'res.dll', 'MonsterByte', RT_RCDATA);
  7.     Results := True;
  8.   except
  9.     Timer1.Enabled := False;
  10.     sButton2.Enabled := False;
  11.     sButton2.Caption := 'Подождите, идёт загрузка...';
  12.     MessageBox(Handle, 'Не удалось активировать!', 'Error', MB_OK + MB_ICONSTOP);
  13.     sButton2.Caption := 'Load Cheat';
  14.     sButton2.Enabled := True;
  15.   end;
  16.   if Results = True then
  17.   begin
  18.     sButton2.Caption := 'Подождите, идёт загрузка...';
  19.     sButton2.Enabled := False;
  20.     Form1.sProgressBar1.Position := Form1.sProgressBar1.Position+1;
  21.     if (Form1.sProgressBar1.Position = 100) then
  22.     begin
  23.       InjectDLL(pid, GetTmpDir + 'res.dll');
  24.       Timer1.Enabled := False;
  25.       MessageBox(Handle, 'MonoCheat loaded!', 'Информация', MB_OK + MB_ICONINFORMATION);
  26.       sbutton2.caption := 'Load Cheat';
  27.       sButton2.Enabled := True;
  28.       sProgressBar1.Position := 0;
  29.     end;
  30.   end;
  31. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement