home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MODEM / TLXTW201.ZIP / TLXTWDIR.SLT < prev    next >
Text File  |  1994-03-10  |  1KB  |  44 lines

  1. // tlxtwdir.slt
  2. ////////////////////////////////////////////////////////////////////////
  3. main()
  4. {
  5.  // Edit the below path to the directory where TLXTW Scripts are installed.
  6.  // Then start Telix with the "S" switch.
  7.  //
  8.  // Example:
  9.  //
  10.  // TELIX STLXTWDIR
  11.  //
  12.  // will load Telix and run the "S"cript TLXTWDIR.
  13.  //
  14.  // Or load Telix as you usually do, and assign this to a Function key,
  15.  // etc, so all you do is hit F1 (for example) to change script
  16.  // directories and load Trader.key. if you assign this to a function key
  17.  // then move this script to your normal script directory.
  18.  
  19.  //                        Edit below
  20.  
  21.  str tlxtw_dir[64] = "C:\Telix\Work\Slc\Slt\Tlxtw\";                         //
  22.  
  23.             // The above path is all you must edit.
  24.             // Must end with "\".
  25.  
  26.  strcat( tlxtw_dir, "trader.key" );
  27.  if (keyload( tlxtw_dir ) > -1) {
  28.     printsc("^M^JTrader.key loaded^M^JScript directory:  " );
  29.     fnstrip( tlxtw_dir, 12, _script_dir );
  30.     printsc( _script_dir );
  31.     printsc("^M^JAlt-F1 for Help");
  32.     printsc("^M^JAlt-H resets defaults.^M^J");
  33.     tlxtw_dir=_script_dir;
  34.     strcat(tlxtw_dir,"Tlxtw.cfg");
  35.     if(!filefind(tlxtw_dir,0)) call("config");
  36.  }
  37.  else {
  38.     printsc("^M^JError loading file " ); prints( tlxtw_dir );
  39.  }
  40.  return 1;
  41. }
  42. ////////////////////////////////////////////////////////////////////////
  43. // end of tlxtwdir.slt
  44.