home *** CD-ROM | disk | FTP | other *** search
- program setup1;
- uses dos,crt,graph;
- type sat=record
- param : integer;
- end;
- var
- gd,gm,a,b,c,d : integer;
- regs : registers;
- utvonal,dd : string;
- hset:sat ;
- satup:file of sat;
- cg : char;
- procedure nemirhato;
- begin
- cleardevice;settextjustify(centertext,centertext);
- setcolor(lightred);settextstyle(1,0,10);outtextxy(320,50,'Baj van!');
- settextstyle(1,0,5);outtextxy(320,170,'A programot tartalmazó');
- outtextxy(320,220,'adathordozó nem irható!');
- outtextxy(320,320,'Irásvédett lemez vagy CD.');
- repeat until keypressed;
- cleardevice;closegraph;halt;
- end;
- {---------------------------------------------------------------------------}
- label 1,2,3,4,5,6,7,8,9,10,11;
- begin {fô}
- gd:=vga;gm:=vgahi;getdir(0,utvonal);if copy(utvonal,length(utvonal),1)<>'\' then utvonal:=utvonal+'\';
- initgraph(gd,gm,utvonal);
- setbkcolor(darkgray);cleardevice;{géptipus}
- settextstyle(1,0,8);setcolor(lightgray);
- outtextxy(180,80,'AT-286');
- outtextxy(180,180,'AT-386');
- outtextxy(180,280,'AT-486');
- a:=1;
- 2:
- setcolor(lightgray);setlinestyle(0,3,3);
- rectangle(170,90,470,170);
- rectangle(170,190,470,270);
- rectangle(170,290,470,370);
- setcolor(red);rectangle(170,a*100-10,470,a*100+70);
- cg:=readkey;
- if cg=#13 then goto 1;
- if cg=#72 then a:=a-1;
- if cg=#80 then a:=a+1;
- if a>3 then a:=a-3;
- if a<1 then a:=a+3;
- goto 2;
- 1:
- setbkcolor(darkgray);cleardevice; {eszközök}
- settextstyle(1,0,6);setcolor(lightgray);
- outtextxy(208,50,'Keyboard');
- outtextxy(250,150,'Mouse');
- outtextxy(212,250,'Joystick');
- outtextxy(250,350,'Voice');
- regs.ax:=0;intr($33,regs);if regs.ax=0 then b:=1
- else b:=2;
- 4:
- setcolor(lightgray);setlinestyle(0,3,3);
- rectangle(200,50,440,120);rectangle(200,150,440,220);
- rectangle(200,250,440,320);rectangle(200,350,440,420);
- setcolor(red);rectangle(200,b*100-50,440,b*100+20);
- cg:=readkey;
- if cg=#13 then goto 3;
- if cg=#72 then b:=b-1;
- if cg=#80 then b:=b+1;
- if b>2 then b:=b-2;
- if b<1 then b:=b+2;
- goto 4;
- 3:
- setbkcolor(darkgray);cleardevice; {hangkártyák}
- settextstyle(1,0,5);setcolor(lightgray);
- outtextxy(208,50,'PC Speaker');
- outtextxy(260,125,'Adlib');
- outtextxy(190,200,'Soundblaster');
- outtextxy(150,275,'Soundblaster Pro');
- outtextxy(140,350,'Gravis Ultrasound');
- c:=1;
- 6:
- setcolor(lightgray);setlinestyle(0,3,3);
- rectangle(130,50,510,100);
- rectangle(130,125,510,175);
- rectangle(130,200,510,250);
- rectangle(130,275,510,325);
- rectangle(130,350,510,400);
- setcolor(red);rectangle(130,c*75-25,510,c*75+25);
- cg:=readkey;
- if cg=#13 then goto 5;
- if cg=#72 then c:=c-1;
- if cg=#80 then c:=c+1;
- if c>5 then c:=c-5;
- if c<1 then c:=c+5;
- c:=1;
- goto 6;
- 5:
- setbkcolor(darkgray);cleardevice; {órahang}
- settextstyle(1,0,7);setcolor(lightgray);
- outtextxy(125,200,'Orahang Be');
- outtextxy(138,140,',');
- d:=1;
- setcolor(lightgray);setlinestyle(0,3,3);
- rectangle(97,190,530,290);
- 8:
- cg:=readkey;
- if cg=#13 then goto 7;
- if cg=#72 then d:=0;
- if cg=#80 then d:=1;
- if d=0 then dd:='Ki';
- if d=1 then dd:='Be';
- setfillstyle(1,darkgray);bar(430,210,510,270);
- outtextxy(443,200,dd);
- goto 8;
- 7:
- setbkcolor(darkgray);cleardevice; {mentsem-e?}
- settextstyle(1,0,5);setcolor(lightgreen);
- outtextxy(60,180,'Mentsem a beállitásokat?');
- outtextxy(210,270,'Igen Nem');
- setcolor(red);outtextxy(210,270,'I');outtextxy(336,270,'N');
- 9:
- cg:=readkey;
- if cg='i' then goto 10;
- if cg='n' then goto 11;
- goto 9;
- 10:
- {lemezre a,b,c,d}
- getdir(0,utvonal);if copy(utvonal,length(utvonal),1)<>'\' then utvonal:=utvonal+'\';
- assign(satup,utvonal+'setup.dat');
- {$I-} rewrite(satup);
- if ioresult<>0 then nemirhato;
- close(satup);sound(500);delay(20);nosound;
- assign(satup,utvonal+'setup.dat');
- reset(satup);
- with hset do
- begin
- param:=a;write(satup,hset);
- param:=b;write(satup,hset);
- param:=c;write(satup,hset);
- param:=d;write(satup,hset);
- end;
- close(satup);
- 11:
- cleardevice;closegraph;
- end.