home *** CD-ROM | disk | FTP | other *** search
- {$B-,V-,I-,N-,E-}
- {$M 4096,0,10240}
- uses
- eco_lib, crt
-
- ;
-
-
-
- var
- st : string;
- fore,
- back,
- sc,
- shadow,
- x, y : byte;
- ch : char;
- error : word;
- colour : boolean;
-
-
- begin
- st := __xlatestr(paramstr(1), '_', ' ');
- __stdio; __setblwin(false);
- if __inparams('/?', error) or (paramcount = 0) then begin
- writeln(__progname);
- writeln(' Usage: ', __progname, ' msg_msg [/systemerror] [/loginerror] [/activate]');
- writeln(__rep(length(__progname)+18, ' '), '[/pause {sec}] [/presskey {sec}] [/sh_low | /sh_high]');
- writeln(__rep(length(__progname)+18, ' '), 'In case /systemerror errlev 100 when "D" else errlev 0');
- halt;
- end;
- gotoxy(1, 16);
- if baseofscreen = $b000 then colour := false else colour := true;
- if colour then begin
- fore := yellow; back := blue;
- end else begin
- fore := white; back := black;
- end;
- shadow := sh_default;
- if __inparams('/sh_high', error) then shadow := sh_high;
- if __inparams('/sh_low', error) then shadow := sh_low;
- if paramcount > 0 then begin
- __bandwin(true, 10, 4, _curcolumns - 10, 12, fore, back, shadow, bt_single);
- __betwscn(10, _curcolumns - 10, 3, fore, back, '[ ' + st + ' ]');
- end;
- if __inparams('/systemerror', error) then begin
- __betwscn(15, _curcolumns - 15, 6, fore, back,
- 'OPSTARTFOUT: Raadpleeg Uw systeembeheerder'
- );
- __betwscn(15, _curcolumns - 15, 8, fore, back,
- 'Druk op een willekeurige toets om verder te gaan...'
- );
- __betwscn(15, _curcolumns - 15, 10, fore, back,
- 'of druk op D om naar DOS te gaan.'
- );
- __flushkey; __delay(1000);
- repeat
- until __exrdykey(true, ch, sc);
- __flushkey;
- if upcase(ch) = 'D' then halt(100) else halt(0);
- end;
- if __inparams('/loginerror', error) then begin
- __betwscn(15, _curcolumns - 15, 6, fore, back,
- 'LOGINFOUT: U heeft waarschijnlijk een verkeerde'
- );
- __betwscn(15, _curcolumns - 15, 8, fore, back,
- 'naam gebruikt, Ik begin opnieuw...'
- );
- end;
- if __inparams('/activate', error) then begin
- __betwscn(15, _curcolumns - 15, 6, fore, back,
- 'Het netwerk wordt nu opgestart,'
- );
- __betwscn(15, _curcolumns - 15, 8, fore, back,
- 'Een moment geduld...'
- );
- end;
- if __inparams('/pause', error) then begin
- __delay(__str(paramstr(error)) * 1000);
- end;
- if __inparams('/presskey', error) then begin
- __delaykey(__str(paramstr(error)) * 1000);
- end;
- end.
-