unit uPlugin;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TPluginForm =
class(TForm)
Memo1: TMemo;
Panel1: TPanel;
Button1: TButton;
Edit1: TEdit;
Edit2: TEdit;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
PluginForm: TPluginForm;
Status: Boolean;
implementation
uses
uRandomString;
{$R *.dfm}
procedure TPluginForm.Button1Click(Sender: TObject);
var
User, pwd, mail:
String;
ul, pl, ml: Integer;
begin
Status := True;
ul := StrToInt(Edit1.Text);
pl := StrToInt(Edit2.Text);
// ml := StrToInt(Edit3.Text);
while Status
do
begin
Application.ProcessMessages;
User := RandomString(ul);
pwd := RandomString(pl);
//mail := RandomString(ml) + '@' + RandomString(5)+'.de';
Memo1.Lines.Add(User+'
:'+pwd);
//+':'+mail);
end;
end;
procedure TPluginForm.Button2Click(Sender: TObject);
begin
Status := False;
end;
function CreatePluginForm(ApplicationHandle, ParentHandle: THandle): boolean;
begin
Result := False;
PluginForm := TPluginForm.Create(
nil);
try
PluginForm.Show;
//PluginForm.ShowModal;
finally
end;
end;
exports
CreatePluginForm;
initialization
RegisterClass(TPluginForm);
finalization
UnRegisterClass(TPluginForm);
end.