Subj : Changing SyncTerm Display speed, and...
To   : Android8675
From : echicken
Date : Fri Mar 30 2018 12:35 pm

 Re: Changing SyncTerm Display speed, and...
 By: Android8675 to echicken on Fri Mar 30 2018 08:37:35

ec>> I would make a JS module that accepts the internal code of an
ec>> external program to execute as a command-line parameter. It would

An> That sounds like a good plan, that would require fewer changes than...

It occurs to me that this could just as easily be a function in xtrn_sec.js or
whatever you launch doors from.  You'll need to modify it anyway, and this
doesn't have to be its own script.

function launch(code) {
 bbs.exec_xtrn(code);
 if (console.yesno('Display scores')) {
   var f = new File(system.ctrl_dir + 'scores.ini');
   f.open('r');
   var ini = f.iniGetObject();
   f.close();
   if (ini[code]) {
     console.clear(LIGHTGRAY);
     console.printfile(ini[code]);
     console.pause();
   }
 }
}

---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
� Synchronet � electronic chicken bbs - bbs.electronicchicken.com