Advertisement
Guest User

Untitled

a guest
May 9th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.96 KB | None | 0 0
  1. program New;
  2.  
  3. var
  4. // MainWindow variables.
  5. frmDesign : TForm;
  6. Label1, Label2 : TLabel;
  7. MelleSet, MageSet, RelogSet, TalkSet, DefColors, RunBtn, SaveBtn, HealSet, OtherSet : TButton;
  8.  
  9. // This form was parsed using DFM Form Parser v.26c Beta by Ron.
  10. // Generated from Simple.dfm.
  11.  
  12. var
  13. // ColorDef variables.
  14. ColorDef : TForm;
  15. PotsBtn, DropsBtn, MageBtn, RelogLockBtn,
  16. SmallBtn, CancelBtn, OkBtn, HPBtn : TButton;
  17.  
  18. // This form was parsed using DFM Form Parser v.26c Beta by Ron.
  19. // Generated from Define Colors.dfm.
  20.  
  21. var
  22. // RelogSet variables.
  23. RelogSettings : TForm;
  24. UsernameLabel, PasswordLabel : TLabel;
  25. Username, Password : TEdit;
  26. Characterbox1, Characterbox3, Characterbox2 : TCheckBox;
  27.  
  28. // This form was parsed using DFM Form Parser v.26c Beta by Ron.
  29. // Generated from Relog Settings.dfm.
  30. procedure RelogSetings;
  31. begin
  32. RelogSettings := CreateForm;
  33. with RelogSettings do
  34. begin
  35. Position := poScreenCenter;
  36. BorderStyle := bsSingle;
  37. BorderIcons := [biMinimize,biSystemMenu];
  38. Width := 305;
  39. Height := 218;
  40. Caption := 'Relog Settings';
  41. Color := clMaroon;
  42. Font.Color := clWindowText;
  43. Font.Height := -11;
  44. Font.Name := 'MS Sans Serif';
  45. Font.Style := [];
  46. PixelsPerInch := 96;
  47. end;
  48. UsernameLabel := TLabel.Create(RelogSettings);
  49. with UsernameLabel do
  50. begin
  51. Parent := RelogSettings;
  52. Left := 104;
  53. Top := 0;
  54. Width := 88;
  55. Height := 26;
  56. Caption := 'Username';
  57. Font.Color := clWindowText;
  58. Font.Height := -21;
  59. Font.Name := 'Impact';
  60. Font.Style := [];
  61. end;
  62. PasswordLabel := TLabel.Create(RelogSettings);
  63. with PasswordLabel do
  64. begin
  65. Parent := RelogSettings;
  66. Left := 104;
  67. Top := 72;
  68. Width := 85;
  69. Height := 26;
  70. Caption := 'Password';
  71. Font.Color := clWindowText;
  72. Font.Height := -21;
  73. Font.Name := 'Impact';
  74. Font.Style := [];
  75. end;
  76. Username := TEdit.Create(RelogSettings);
  77. with Username do
  78. begin
  79. Parent := RelogSettings;
  80. Left := 8;
  81. Top := 32;
  82. Width := 281;
  83. Height := 21;
  84. TabOrder := 8;
  85. end;
  86. Password := TEdit.Create(RelogSettings);
  87. with Password do
  88. begin
  89. Parent := RelogSettings;
  90. Left := 8;
  91. Top := 104;
  92. Width := 281;
  93. Height := 21;
  94. TabOrder := 9;
  95. end;
  96. Characterbox1 := TCheckBox.Create(RelogSettings);
  97. with Characterbox1 do
  98. begin
  99. Parent := RelogSettings;
  100. Left := 24;
  101. Top := 128;
  102. Width := 97;
  103. Height := 25;
  104. Caption := 'Character One';
  105. TabOrder := 10;
  106. end;
  107. Characterbox3 := TCheckBox.Create(RelogSettings);
  108. with Characterbox3 do
  109. begin
  110. Parent := RelogSettings;
  111. Left := 96;
  112. Top := 160;
  113. Width := 97;
  114. Height := 25;
  115. Caption := 'Character Three';
  116. TabOrder := 11;
  117. end;
  118. Characterbox2 := TCheckBox.Create(RelogSettings);
  119. with Characterbox2 do
  120. begin
  121. Parent := RelogSettings;
  122. Left := 168;
  123. Top := 128;
  124. Width := 97;
  125. Height := 25;
  126. Caption := 'Character Two';
  127. TabOrder := 12;
  128. end;
  129. end;
  130.  
  131. procedure SafeRelogSet;
  132. var
  133. v : TVariantArray;
  134. begin
  135. SetArrayLength(v, 0);
  136. ThreadSafeCall('RelogSetings', v);
  137. end;
  138.  
  139. procedure ShowRelogSetModal;
  140. begin
  141. RelogSettings.ShowModal;
  142. end;
  143.  
  144. procedure SafeShowRelogSetModal;
  145. var
  146. v : TVariantArray;
  147. begin
  148. SetArrayLength(v, 0);
  149. ThreadSafeCall('ShowRelogSetModal', v);
  150. end;
  151.  
  152. procedure MainRelogSet;
  153. begin
  154. SafeRelogSet;
  155. SafeShowRelogSetModal;
  156. FreeForm(RelogSettings);
  157. end;
  158.  
  159. procedure ColorDefine;
  160. begin
  161. ColorDef := CreateForm;
  162. with ColorDef do
  163. begin
  164. Position := poScreenCenter;
  165. BorderStyle := bsSingle;
  166. BorderIcons := [biMinimize,biSystemMenu];
  167. Width := 466;
  168. Height := 242;
  169. Caption := 'Define Colors';
  170. Color := clMaroon;
  171. Font.Color := clWindowText;
  172. Font.Height := -11;
  173. Font.Name := 'MS Sans Serif';
  174. Font.Style := [];
  175. PixelsPerInch := 96;
  176. end;
  177. PotsBtn := TButton.Create(ColorDef);
  178. with PotsBtn do
  179. begin
  180. Parent := ColorDef;
  181. Left := 312;
  182. Top := 8;
  183. Width := 137;
  184. Height := 57;
  185. Caption := 'Pots';
  186. TabOrder := 8;
  187. end;
  188. DropsBtn := TButton.Create(ColorDef);
  189. with DropsBtn do
  190. begin
  191. Parent := ColorDef;
  192. Left := 160;
  193. Top := 72;
  194. Width := 137;
  195. Height := 57;
  196. Caption := 'Drops';
  197. TabOrder := 9;
  198. end;
  199. MageBtn := TButton.Create(ColorDef);
  200. with MageBtn do
  201. begin
  202. Parent := ColorDef;
  203. Left := 160;
  204. Top := 8;
  205. Width := 137;
  206. Height := 57;
  207. Caption := 'Mage';
  208. TabOrder := 10;
  209. end;
  210. RelogLockBtn := TButton.Create(ColorDef);
  211. with RelogLockBtn do
  212. begin
  213. Parent := ColorDef;
  214. Left := 8;
  215. Top := 72;
  216. Width := 137;
  217. Height := 57;
  218. Caption := 'Relog Lock';
  219. TabOrder := 11;
  220. end;
  221. SmallBtn := TButton.Create(ColorDef);
  222. with SmallBtn do
  223. begin
  224. Parent := ColorDef;
  225. Left := 312;
  226. Top := 72;
  227. Width := 137;
  228. Height := 57;
  229. Caption := 'Small Pots';
  230. TabOrder := 12;
  231. end;
  232. CancelBtn := TButton.Create(ColorDef);
  233. with CancelBtn do
  234. begin
  235. Parent := ColorDef;
  236. Left := 8;
  237. Top := 136;
  238. Width := 137;
  239. Height := 57;
  240. Caption := 'Cancel';
  241. TabOrder := 13;
  242. end;
  243. OkBtn := TButton.Create(ColorDef);
  244. with OkBtn do
  245. begin
  246. Parent := ColorDef;
  247. Left := 312;
  248. Top := 136;
  249. Width := 137;
  250. Height := 57;
  251. Caption := 'Ok';
  252. TabOrder := 14;
  253. end;
  254. HPBtn := TButton.Create(ColorDef);
  255. with HPBtn do
  256. begin
  257. Parent := ColorDef;
  258. Left := 8;
  259. Top := 8;
  260. Width := 137;
  261. Height := 57;
  262. Caption := 'HP';
  263. TabOrder := 15;
  264. end;
  265. end;
  266.  
  267. procedure SafeColorDef;
  268. var
  269. v : TVariantArray;
  270. begin
  271. SetArrayLength(v, 0);
  272. ThreadSafeCall('ColorDefine', v);
  273. end;
  274.  
  275. procedure ShowColorDefModal;
  276. begin
  277. ColorDef.ShowModal;
  278. end;
  279.  
  280. procedure SafeShowColorDefModal;
  281. var
  282. vv : TVariantArray;
  283. begin
  284. SetArrayLength(vv, 0);
  285. ThreadSafeCall('ShowColorDefModal', vv);
  286. end;
  287.  
  288. procedure MainColorDef;
  289. begin
  290. SafeColorDef;
  291. SafeShowColorDefModal;
  292.  
  293. end;
  294.  
  295. procedure Click(sender:TObject);
  296. begin
  297. Wait(50); //MelleSet, MageSet, RelogSet, TalkSet, DefColors, RunBtn, SaveBtn, HealSet, OtherSet
  298. Case Sender of
  299. DefColors: MainColorDef; {Define Colors Button, Run Define Colors Window}
  300. MelleSet: Wait(10); {Melle Settings Button, Opens Melle Setings Window}
  301. MageSet: Wait(10); {Mage Settings Button, Opens Mage Settings Window}
  302. RelogSet: MainRelogSet; {Relog Settings Button, Opens the Relog Settings Window}
  303. TalkSet: Wait(10); {Talk Settings Button, Opens the Talk Settings Window}
  304. RunBtn: Wait(10); {Run Button, Runs The Bot}
  305. SaveBtn: Wait(10); {Save Button, Saves The Settings}
  306. HealSet: Wait(10); {Heal Settings Button, Opens the Heal Settings Window}
  307. OtherSet: Wait(10); {Other Settings Button, Opens the Other Settings Window}
  308. end;
  309. Wait(50);
  310. end;
  311.  
  312.  
  313.  
  314.  
  315. procedure MainWindow;
  316. begin
  317. frmDesign := CreateForm;
  318. with frmDesign do
  319. begin
  320. Position := poScreenCenter;
  321. BorderStyle := bsSingle;
  322. BorderIcons := [biMinimize,biSystemMenu];
  323. Width := 325;
  324. Height := 329;
  325. Caption := 'Simple Auto';
  326. Color := clMaroon;
  327. Font.Color := clWindowText;
  328. Font.Height := -11;
  329. Font.Name := 'MS Sans Serif';
  330. Font.Style := [];
  331. PixelsPerInch := 96;
  332. end;
  333. Label1 := TLabel.Create(frmDesign);
  334. with Label1 do
  335. begin
  336. Parent := frmDesign;
  337. Left := 8;
  338. Top := 8;
  339. Width := 300;
  340. Height := 16;
  341. Caption := 'Simple Auto Version 2.0';
  342. Font.Color := clWindowText;
  343. Font.Height := -16;
  344. Font.Name := 'Terminal';
  345. Font.Style := [fsBold];
  346. end;
  347. Label2 := TLabel.Create(frmDesign);
  348. with Label2 do
  349. begin
  350. Parent := frmDesign;
  351. Left := 104;
  352. Top := 32;
  353. Width := 82;
  354. Height := 12;
  355. Caption := 'By Digitx';
  356. Font.Color := clWindowText;
  357. Font.Height := -12;
  358. Font.Name := 'Terminal';
  359. Font.Style := [fsBold];
  360. end;
  361. MelleSet := TButton.Create(frmDesign);
  362. with MelleSet do
  363. begin
  364. OnClick:=@Click;
  365. Parent := frmDesign;
  366. Left := 8;
  367. Top := 56;
  368. Width := 81;
  369. Height := 25;
  370. Caption := 'Melle Settings';
  371. TabOrder := 8;
  372. end;
  373. MageSet := TButton.Create(frmDesign);
  374. with MageSet do
  375. begin
  376. OnClick:=@Click;
  377. Parent := frmDesign;
  378. Left := 224;
  379. Top := 56;
  380. Width := 81;
  381. Height := 25;
  382. Caption := 'Mage Settings';
  383. TabOrder := 9;
  384. end;
  385. RelogSet := TButton.Create(frmDesign);
  386. with RelogSet do
  387. begin
  388. OnClick:=@Click;
  389. Parent := frmDesign;
  390. Left := 8;
  391. Top := 104;
  392. Width := 81;
  393. Height := 25;
  394. Caption := 'Relog Settings';
  395. TabOrder := 10;
  396. end;
  397. TalkSet := TButton.Create(frmDesign);
  398. with TalkSet do
  399. begin
  400. OnClick:=@Click;
  401. Parent := frmDesign;
  402. Left := 224;
  403. Top := 104;
  404. Width := 81;
  405. Height := 25;
  406. Caption := 'Talk Settings';
  407. TabOrder := 11;
  408. end;
  409. DefColors := TButton.Create(frmDesign);
  410. with DefColors do
  411. begin
  412. OnClick:=@Click;
  413. Parent := frmDesign;
  414. Left := 56;
  415. Top := 152;
  416. Width := 201;
  417. Height := 41;
  418. Caption := 'Define Colors.';
  419. Font.Color := clWindowText;
  420. Font.Height := -19;
  421. Font.Name := 'Impact';
  422. Font.Style := [];
  423. TabOrder := 12;
  424. end;
  425. RunBtn := TButton.Create(frmDesign);
  426. with RunBtn do
  427. begin
  428. OnClick:=@Click;
  429. Parent := frmDesign;
  430. Left := 56;
  431. Top := 248;
  432. Width := 201;
  433. Height := 41;
  434. Caption := 'Run Bot';
  435. Font.Color := clWindowText;
  436. Font.Height := -19;
  437. Font.Name := 'Impact';
  438. Font.Style := [];
  439. TabOrder := 13;
  440. end;
  441. SaveBtn := TButton.Create(frmDesign);
  442. with SaveBtn do
  443. begin
  444. OnClick:=@Click;
  445. Parent := frmDesign;
  446. Left := 56;
  447. Top := 200;
  448. Width := 201;
  449. Height := 41;
  450. Caption := 'Save';
  451. Font.Color := clWindowText;
  452. Font.Height := -19;
  453. Font.Name := 'Impact';
  454. Font.Style := [];
  455. TabOrder := 14;
  456. end;
  457. HealSet := TButton.Create(frmDesign);
  458. with HealSet do
  459. begin
  460. OnClick:=@Click;
  461. Parent := frmDesign;
  462. Left := 112;
  463. Top := 56;
  464. Width := 89;
  465. Height := 25;
  466. Caption := 'Heal Settings';
  467. TabOrder := 15;
  468. end;
  469. OtherSet := TButton.Create(frmDesign);
  470. with OtherSet do
  471. begin
  472. OnClick:=@Click;
  473. Parent := frmDesign;
  474. Left := 112;
  475. Top := 104;
  476. Width := 89;
  477. Height := 25;
  478. Caption := 'Other Settings';
  479. TabOrder := 16;
  480. end;
  481. end;
  482.  
  483. procedure SafeMainWindow;
  484. var
  485. v : TVariantArray;
  486. begin
  487. SetArrayLength(v, 0);
  488. ThreadSafeCall('MainWindow', v);
  489. end;
  490.  
  491. procedure ShowMainWindowModal;
  492. begin
  493. frmDesign.ShowModal;
  494. end;
  495.  
  496. procedure SafeShowMainWindowModal;
  497. var
  498. v : TVariantArray;
  499. begin
  500. SetArrayLength(v, 0);
  501. ThreadSafeCall('ShowMainWindowModal', v);
  502. end;
  503.  
  504. procedure MainMainWindow;
  505. begin
  506. SafeMainWindow;
  507. SafeShowMainWindowModal;
  508. FreeForm(frmDesign);
  509. end;
  510.  
  511.  
  512.  
  513. begin
  514. ClearDebug;
  515. MainMainWindow;
  516. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement