• xtrn_sec.js

    From Android8675@1:103/705 to All on Thu Apr 6 15:09:36 2017
    xtrn_sec.js question,

    If the file xtrn#.asc exists, the default action is to just display that file and wait for input.

    Is there a way to display the xtrn#.asc file and THEN display the sbbs external programs section?

    Tinkered with some else statements, and now the file is displayed, but then it pauses for input before clearing screen and displaying door list. would like to clear screen (is user has clear screen flag), display xtrn#.asc then sbbs door list for that section.

    if(file_exists(system.text_dir + "menu/xtrn" + (xtrn_area.sec_list[xsec].number+1) + ".asc")) {
    bbs.menu("xtrn" + (xtrn_area.sec_list[xsec].number+1));
    // }
    // (Removing this else, I want auto generated list displayed after xtrn#.asc
    // else {
    if(options.sort)
    prog_list.sort(sort_by_name);

    ...etc. Around line 63/64.


    ... A husband is what is left of a man after the nerve is extracted.

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com (Port 2323 for Nethack)
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Bill McGarrity@1:103/705 to Android8675 on Fri Apr 7 02:39:00 2017
    Android8675 wrote to All on 04-06-17 15:09 <=-

    xtrn_sec.js question,

    If the file xtrn#.asc exists, the default action is to just display
    that file and wait for input.

    Is there a way to display the xtrn#.asc file and THEN display the sbbs external programs section?

    Tinkered with some else statements, and now the file is displayed, but then it pauses for input before clearing screen and displaying door
    list. would like to clear screen (is user has clear screen flag),
    display xtrn#.asc then sbbs door list for that section.

    if(file_exists(system.text_dir + "menu/xtrn" + (xtrn_area.sec_list[xsec].number+1) + ".asc")) {
    bbs.menu("xtrn" + (xtrn_area.sec_list[xsec].number+1));
    // }
    // (Removing this else, I want auto generated list displayed after xtrn#.asc // else {
    if(options.sort)
    prog_list.sort(sort_by_name);

    ...etc. Around line 63/64.


    I'm not quite sure if I totally understand you but I hope I understand.

    What I've done here is taken the bullseye.src file (../exec) and created new ones by changing the name of the .cfg on line 24 and the .asc on like 47 to new areas. Let's say on line 24 I changed 'bullseye.cfg' to interbul.cfg' and line 47 to 'interbul.asc'. I would save that file as 'interbul.src'. I would then run baja to make it interbul.bin. (baja -p interbul.src)

    I would then look at the ONLINE Program Selections and under MAIN and create and entry under Available Online Programs with a command line of *interbul in ../exec.

    I would then go to ../text and create an interbul.cfg where you would list the application you wanted run per line that would correspond to the 'interbul.asc' file you'd create which would also reside in the ../text folder.

    Logical order would be X on main screen > External Programs (xtrn_sec.asc) > Main External Section (xtrn#.asc) > Interbul.asc (list of what you wanted to do in the interbul.cfg) > choice within interbul.cfg.

    You can make as many 'xxxx.bin' spinoffs as you want if you want a sub-menu after the xtrn#.asc.

    I hope this is what you wanted... if not, then I just shared my secret.. lol!!

    Good luck..


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Synchronet * TequilaMockingbird Online - Toms River, NJ
    * Origin: Vertrauen - vert.synchro.net (1:103/705)