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...
If you prefer to work in JavaScript, you could use classic_shell.js or anoth shell written in JS, but how to modify the menu and launch an external is slightly different.
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?
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?
So, at about line 291 or so you would add something like this:
case 'L':
bbs.exec_xtrn('CODE');
continue main;
(Assuming that "CODE" is the internal code of the door).
Then you would need to modify the menu ASC file. In text/menu, there's
a main.asc file. I think PabloDraw supports editing ASC files
directly, so fire up PB and load main.asc and fix up the menu to
include the new 'L' command.
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...
No problem. The "default" shell is actually exec/default.bin (written
in Baja, the source of which is default.src).
You can section with the label ":e-mail" in this file.
You can add a "cmdkey L" command block (end with "end_cmd") or add it
into the "cmdkey N" block if you prefer.
To execute a configured door (SCFG->External Programs->Online
Programs), use
EXEC_XTRN "intcode"
where "intcode" is the internal code of the program you have configured
in SCFG. For detalis, see http://synchro.net/docs/baja.html
If you prefer to work in JavaScript, you could use classic_shell.js or another shell written in JS, but how to modify the menu and launch an external is slightly different.
To execute a configured door (SCFG->External Programs->Online Programs), use
EXEC_XTRN "intcode"
where "intcode" is the internal code of the program you have
configured in SCFG. For detalis, see http://synchro.net/docs/baja.html
If you prefer to work in JavaScript, you could use classic_shell.js or another shell written in JS, but how to modify the menu and launch an 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!!
Digital Man wrote to Bill McGarrity <=-
If you prefer to work in JavaScript, you could use classic_shell.js or another shell written in JS, but how to modify the menu and launch an 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!!
Cool. Modified .src and .js files should go in your "mods" directory though, so you won't lose your changes during any future upgrades: http://wiki.synchro.net/dir:mods
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 203:14:29 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,771 |