home *** CD-ROM | disk | FTP | other *** search
- // Copyright 1992, FutureSoft Technologies.
- // For use with InComm:PcPDial, release 1.0.0
- // Feel free to use and modify this script however you see fit.
-
- main(str connectfile)
- {
- int f;
- int t1,t2,t3,t4,t5,t6,t7;
- int stat;
- str name[31];
- str script[13];
- str user[21];
- str password[21];
-
- f = fopen(connectfile,"r");
- fgets(name,100,f);
- fgets(script,100,f);
- fgets(user,100,f);
- fgets(password,100,f);
- fclose(f);
-
- delay(40);
- cputs("^M"); // English Language
- cputs("Y^M"); // Use ANSI Graphics
-
- waitfor("first name?",15); // Name and password
- cputs(user);
- cputs("^M");
- delay(10);
- cputs(password);
- cputs("^M");
-
- t1 = track("(N)o, (NS)non-stop?",0);
- t2 = track("left) Main (0) Command?",0);
- t3 = track("(Enter) to continue:",0);
- t4 = track("(H)elp, More?",0);
- t5 = track("Since 'Last Read' (Enter)=yes?",0);
- t6 = track("Main Board Command?",0);
- t7 = track("Press (Enter) to continue?",0);
-
- while (1) { // Give appropriate responses until main board prompt
- terminal();
- stat = track_hit(0);
- if ((stat == t1) || (stat == t4) || (stat==t5)) {
- cputs("n^M");
- }
- if ((stat == t3) || (stat == t7)) {
- cputs("^M");
- }
- if ((stat == t6) || (stat == t2))
- break;
- }
- }
-