-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBiosUpgrade.pas
79 lines (68 loc) · 2.18 KB
/
BiosUpgrade.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
unit BiosUpgrade;
interface
uses
Windows, Forms, sysutils,
param, ExtCtrls, Classes, Controls, ComCtrls;
type
TBios = class(TForm)
ProgressBar1: TProgressBar;
Timer1: TTimer;
procedure FormActivate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Bios: TBios;
implementation
uses Main, Overclock, Test;
{$R *.dfm}
procedure TBios.FormActivate(Sender: TObject);
begin
ProgressBAr1.Position:=0;
Timer1.Enabled:=true;
end;
procedure TBios.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Timer1.Enabled:=false;
ProgressBar1.Position:=0;
end;
procedure TBios.Timer1Timer(Sender: TObject);
begin
Bios.Caption:='Ïåðåïðîøèâêà BIOS - '+inttoStr(progressbar1.position)+'%';
If (ProgressBar1.Position=20+random(7)) and (ProgressBar1.Position=65+random(7)) then begin
If (random(15)=5) and (MainForm.Label38.Caption='Íåò') then begin
Timer1.Enabled:=false;
Application.MessageBox('Âíåçàïíî ïîãàñ ñâåò! Òåïåðü ìîæåòå åãî áîëüøå íå âêëþ÷àòü!','Ïîìîùü!',MB_ICONSTOP);
Mainform.Label23.Caption:='Íåò';
Close;
Clock.Close;
Tst.Close;
end;
end;
If ProgressBar1.Position<100 then
ProgressBar1.Position:=ProgressBar1.Position+1
else
begin
Timer1.Enabled:=false;
Application.MessageBox('Íîâàÿ ïðîøèâêà BIOS óñïåøíî óñòàíîâëåíà! Òåïåðü âàì äîñòóïíî èçìåíåíèå íàïðÿæåíèÿ íà ïðîöåññîðå è ÷àñòîòû øèíû FSB!','Ïîìîùü!',MB_ICONINFORMATION);
Clock.Label8.Caption:='Äîñòóïíî';
MainForm.Label99.Caption:='Äîñòóïíî';
Clock.Label12.Caption:='Äîñòóïíî';
MainForm.Label121.Caption:='Äîñòóïíî';
Clock.Edit1.Enabled:=true;
Clock.UpDown1.Enabled:=true;
Clock.UpDown1.position:=cpufsb;
Clock.Edit3.Enabled:=true;
Clock.UpDown3.Enabled:=true;
Clock.UpDown3.position:=Round((cpuvolt - 1)*100);
Clock.Button1.Enabled:=false;
Close;
end;
If ((progressBar1.Position=50+random(5)) and (random(6)=4)) or ((progressBar1.Position=78+random(5)) and (random(6)=4)) then
sleep(2000+random(2000));
end;
end.