Deuce wrote to Bill McGarrity <=-ããã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ãã De> So, at about line 291 or so you would add something like this:ãã De> case 'L':ã De> bbs.exec_xtrn('CODE');ã De> continue main;ãã De> (Assuming that "CODE" is the internal code of the door).ã De> Then you would need to modify the menu ASC file. In text/menu, there'sã De> a main.asc file. I think PabloDraw supports editing ASC filesã De> directly, so fire up PB and load main.asc and fix up the menu toã De> include the new 'L' command.ããThank you Deuce... y'all are just super at giving help.. :) So if I understandãthe info above is for the .js file. DM just gave me the info forãdefault.scr/bin, which is baja. I'l try both ways... :)ãããããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
Digital Man wrote to Bill McGarrity <=-ããã > Good day all...ã >ã > Originally I msg'd Rob over this but he asked me to post it in the echoã > here for others. Appreciate the answer as well....ã >ã > Hiya Rob...ã >ã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ã >ã > I appreciate the time you put into this and for any pointers you can giveã > me.ã >ã > Here is the reply... for those who didn't know... including myself...ã >ã >ã > "classic_shell.js isn't normally used (default.src/bin is used instead)."ã >ã > Thanks again Rob...ãã DM> No problem. The "default" shell is actually exec/default.bin (writtenã DM> in Baja, the source of which is default.src).ãã DM> You can section with the label ":e-mail" in this file.ãã DM> You can add a "cmdkey L" command block (end with "end_cmd") or add itã DM> into the "cmdkey N" block if you prefer.ãã DM> To execute a configured door (SCFG->External Programs->Onlineã DM> Programs), useãã DM> EXEC_XTRN "intcode"ãã DM> where "intcode" is the internal code of the program you have configuredã DM> in SCFG. For detalis, see http://synchro.net/docs/baja.htmlãã DM> If you prefer to work in JavaScript, you could use classic_shell.js orã DM> another shell written in JS, but how to modify the menu and launch anã DM> external is slightly different.ããJust what I was looking for. the EXEC_XTRN was something I was looking for andãnow it all makes sense. Thanks again...ããJust so I understand, this should be the way I'll do it...ããcmdkey Lã exec_xtrn "FNLSCAN"ã end_cmdããFrom what I read in the CommandKeyConstants, should there be any args:??ããALso, in compiling, I'd just do: baja default.scr Correct?? (naturally, Iãmake a backup of the original default.scr/bin files before I go nuts... :)ããã ***ãAddendum.... I made the changes you said and it works perfectly... that was tooãdamn easy.. lol!!ãããThanks again..ãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
Digital Man wrote to Bill McGarrity <=-ãã >ã > DM> If you prefer to work in JavaScript, you could use classic_shell.js orã > DM> another shell written in JS, but how to modify the menu and launch anã > DM> external is slightly different.ã >ã > Just what I was looking for. the EXEC_XTRN was something I was looking forã > and now it all makes sense. Thanks again...ã >ã > Just so I understand, this should be the way I'll do it...ã >ã > cmdkey Lã > exec_xtrn "FNLSCAN"ã > end_cmdã >ã > From what I read in the CommandKeyConstants, should there be any args:??ã >ã > ALso, in compiling, I'd just do: baja default.scr Correct?? (naturally, Iã > make a backup of the original default.scr/bin files before I go nuts... :)ã >ã >ã > ***ã > Addendum.... I made the changes you said and it works perfectly... that wasã > too damn easy.. lol!!ãã DM> Cool. Modified .src and .js files should go in your "mods" directoryã DM> though, so you won't lose your changes during any future upgrades:ã DM> http://wiki.synchro.net/dir:modsããOK.. I didn't change the .js just the src and compiled. Sould the bin file goãinto mods as well being it was also changed? Hell, I'll do it anyway... can'tãhurt.. lolãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 129:16:49 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |