Subj : Re: classic_shell.js
To : Digital Man
From : Bill McGarrity
Date : Sat Feb 08 2014 11:13 pm
-=> 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