source: trollforge/unsorted/old-trollforges/old-trollforge/proj/xanga/old/source/Unit1.pas @ 605

Revision 605, 3.7 KB checked in by literalka, 16 months ago (diff)

more sorting, jesus fuck

Line 
1unit Unit1;
2
3interface
4
5uses
6  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
7  Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
8  IdTCPClient, IdHTTP, IdCookieManager, StrUtils, DB, DBClient, Spin, Contnrs, Unit2;
9
10type
11  TfmMain = class(TForm)
12    btnInit: TButton;
13    mmOutput: TMemo;
14    edtLoginName: TEdit;
15    edtPassword: TEdit;
16    lblName: TLabel;
17    lblPass: TLabel;
18    seCounter: TSpinEdit;
19    edtProxyAdd: TEdit;
20    edtProxyPort: TEdit;
21    lblProxyAdd: TLabel;
22    lblProxyPort: TLabel;
23    btnClearData: TButton;
24    lstbxIntro: TListBox;
25    lstbxBody: TListBox;
26    lstbxEnd: TListBox;
27    btnIntroLoader: TButton;
28    btnBodyLoader: TButton;
29    btnEndLoader: TButton;
30    odOpener: TOpenDialog;
31    procedure btnInitClick(Sender: TObject);
32    procedure FormShow(Sender: TObject);
33    procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
34    procedure btnClearDataClick(Sender: TObject);
35    procedure btnIntroLoaderClick(Sender: TObject);
36    procedure btnBodyLoaderClick(Sender: TObject);
37    procedure btnEndLoaderClick(Sender: TObject);
38  private
39    { Private declarations }
40  public
41    { Public declarations }
42  end;
43
44var
45  fmMain: TfmMain;
46
47  SayingBoxes: array[1..3] of TListBox;
48  Threadders: TSpamThread;
49  ThreadList: TObjectList;
50
51implementation
52
53{$R *.dfm}
54
55procedure TfmMain.btnInitClick(Sender: TObject);
56begin
57  Threadders := TSpamThread.Create(False);
58  ThreadList.Add(Threadders);
59  mmOutput.Lines.Add('Creating New Thread...');
60end;
61
62procedure TfmMain.FormShow(Sender: TObject);
63begin
64  Randomize;
65
66  ThreadList := TObjectList.Create;
67
68  SayingBoxes[1] := TListBox.Create(Self);
69  SayingBoxes[2] := TListBox.Create(Self);
70  SayingBoxes[3] := TListBox.Create(Self);
71
72  SayingBoxes[1].Visible := False;
73  SayingBoxes[2].Visible := False;
74  SayingBoxes[3].Visible := False;
75
76  SayingBoxes[1].Parent := Self;
77  SayingBoxes[2].Parent := Self;
78  SayingBoxes[3].Parent := Self;
79
80  SayingBoxes[1].Items.Add('hi');
81  SayingBoxes[1].Items.Add('whats up');
82  SayingBoxes[1].Items.Add('whaddup');
83  SayingBoxes[1].Items.Add('sup');
84  SayingBoxes[1].Items.Add('hey');
85  SayingBoxes[1].Items.Add('supsup');
86
87  SayingBoxes[2].Items.Add('kool site. visit mine when u have a chance.');
88  SayingBoxes[2].Items.Add('nice site, i really like it. hit me back.');
89  SayingBoxes[2].Items.Add('whats up? just randomly came on your site. awesome!');
90  SayingBoxes[2].Items.Add('i really like the layout of your site');
91  SayingBoxes[2].Items.Add('wow, you seem like a real interesting person');
92  SayingBoxes[2].Items.Add('just randomly going around and commenting ppls xanga''s. hit me back.');
93
94  SayingBoxes[3].Items.Add('anyways, i''m out');
95  SayingBoxes[3].Items.Add('byebye.');
96  SayingBoxes[3].Items.Add('bye.');
97  SayingBoxes[3].Items.Add('pz');
98  SayingBoxes[3].Items.Add('peace');
99  SayingBoxes[3].Items.Add('l8r');
100
101//  lbUsernames.Items.LoadFromFile('SENT.TXT');
102end;
103
104procedure TfmMain.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
105begin
106//  lbUsernames.Items.SaveToFile('SENT.TXT');
107end;
108
109procedure TfmMain.btnClearDataClick(Sender: TObject);
110begin
111  mmOutput.Clear;
112end;
113
114procedure TfmMain.btnIntroLoaderClick(Sender: TObject);
115begin
116  if odOpener.Execute then
117    lstbxIntro.Items.LoadFromFile(odOpener.FileName)
118end;
119
120procedure TfmMain.btnBodyLoaderClick(Sender: TObject);
121begin
122  if odOpener.Execute then
123    lstbxBody.Items.LoadFromFile(odOpener.FileName)
124end;
125
126procedure TfmMain.btnEndLoaderClick(Sender: TObject);
127begin
128  if odOpener.Execute then
129    lstbxEnd.Items.LoadFromFile(odOpener.FileName)
130end;
131
132end.
133
Note: See TracBrowser for help on using the repository browser.