⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unitautoattack.pas

📁 诛仙小挂
💻 PAS
字号:
unit UnitAutoAttack;

interface

uses
  Classes,windows,SysUtils,Unit1;

type
  AutoAttack = class(TThread)
  private
    { Private declarations }
  protected
    procedure Execute; override;
    procedure Attack;
  end;

implementation
uses UnitCall;
var
myFuncCall:FuncCall;

{ Important: Methods and properties of objects in visual components can only be
  used in a method called using Synchronize, for example,

      Synchronize(UpdateCaption);

  and UpdateCaption could look like,

    procedure AutoAttack.UpdateCaption;
    begin
      Form1.Caption := 'Updated in a thread';
    end; }

{ AutoAttack }
//延时程序
procedure Delay(msecs: integer);
var
    FirstTickCount: Longint;
begin
    FirstTickCount := GetTickCount;
    repeat
        //Application.ProcessMessages();
        sleep(1);
    until ((GetTickCount - FirstTickCount) >= Longint(msecs));
end;

procedure AutoAttack.Execute;
begin
  { Place thread code here }
  myFuncCall.Init;
  while not Terminated do
  begin
  Attack;
  end;
end;

procedure AutoAttack.Attack;
begin
myFuncCall.Attick(strtoint(Form1.Edit_attackLimit.text));
Delay(500);
end;
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -