-
JavaScript Command Shell
From
Matt@VERT to
All on Fri Dec 19 21:25:44 2008
I'm a bit confused. I am trying to write a JavaScript command shell for myãboard. I added the command shell to the configuration and set the internalãcode. When I login to try and use it, it says that it cannot find mframe.bin.ãWell, duh, because its JavaScript.ããHow do I let the configuration that it is a javascript and not a baja module.ãOr, do I have to make a baja module that executes a javascript?ããThanks!ãã- Mattã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Matt on Fri Dec 19 21:33:09 2008
Re: JavaScript Command Shellã By: Matt to All on Fri Dec 19 2008 09:25 pmãã > I'm a bit confused. I am trying to write a JavaScript command shell for myã > board. I added the command shell to the configuration and set the internalã > code. When I login to try and use it, it says that it cannot findã > mframe.bin. Well, duh, because its JavaScript.ã >ã > How do I let the configuration that it is a javascript and not a bajaã > module. Or, do I have to make a baja module that executes a javascript?ããExactly. You need a one line Baja module that executes the JavaScript. Seeãexec/lbshell.src for an example.ããI plan to address this in a future version.ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #68:ãThe longest one syllabled word is "screeched".ãNorco, CA WX: ---øF, ---% humidity, NaN mph --- wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Matt@VERT to
Digital Man on Fri Dec 19 21:43:50 2008
Re: JavaScript Command Shellã By: Digital Man to Matt on Fri Dec 19 2008 09:33 pmããThanks Digital Man! What a quick reply too!ãããã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Tracker1@VERT/TRN to
Matt on Fri Dec 19 23:06:08 2008
On 12/19/2008 10:25 PM, Matt wrote:ã> I'm a bit confused. I am trying to write a JavaScript command shell for myã> board. I added the command shell to the configuration and set the internalã> code. When I login to try and use it, it says that it cannot find mframe.bin.ã> Well, duh, because its JavaScript.ã> ã> How do I let the configuration that it is a javascript and not a baja module.ã> Or, do I have to make a baja module that executes a javascript?ããmake a baja that executes the .jsãexample....ãã:topãEXEC "?s3.js"ã# should only see in a shell changeãPAUSEãGOTO topãããreplace s3 with your shell... the loop is so you can break out of the js, and ãreload... this also works for changing shells... your js shell will need to ãdetect the shell changed and exit the js.ãã-- ãMichael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.netãicq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)ãã... FRA #008: Small print leads to large risk.ãã---ã þ Synchronet þ theroughnecks.net - you know you want itã
-
From
Reverend Shaft@VERT/ARENA to
All on Sat Oct 22 11:13:28 2011
Re: Re: JavaScript Command Shã By: Tracker1 to Matt on Fri Dec 19 2008 11:06 pmãã > On 12/19/2008 10:25 PM, Matt wrote:ã > > How do I let the configuration that it is a javascript and not a baja moduã > > Or, do I have to make a baja module that executes a javascript?ãã > make a baja that executes the .js example....ãã > :top EXEC "?s3.js" # should only see in a shell change PAUSE GOTOã > topãã > replace s3 with your shell... the loop is so you can break out of the js, aã > reload... this also works for changing shells... your js shell will need toã > detect the shell changed and exit the js.ããI know this is an ancient thread, but it might be worth mentioning somewhereãin the documentation. I spent a lot of time tracking this down last night,ãand then a lot of wasted time trying to figure out why once I changed to myãcustom shell, I couldn't change out of it without re-logging (because I's anãidiot at 3am).ããThe snippet I used to detect the shell change (to break out of the shell andãallow another one to take over) was this:ããif(user.command_shell.toUpperCase() != "MYSHELL") {ã exit();ã}ããIs this the cleanest way to handle it?ããReverend ShaftãThe Arena BBSãtelnet:\\arena.ourhobby.comããã---ã þ Synchronet þ The Arena BBS | Bryan, OH | telnet:arena.ourhobby.comã
-
From
Digital Man@VERT to
Reverend Shaft on Sun Oct 23 01:01:35 2011
Re: Re: JavaScript Command Shellã By: Reverend Shaft to All on Sat Oct 22 2011 11:13 amãã > Re: Re: JavaScript Command Shã > By: Tracker1 to Matt on Fri Dec 19 2008 11:06 pmã >ã > > On 12/19/2008 10:25 PM, Matt wrote:ã > > > How do I let the configuration that it is a javascript and not a bajaã > > > modu Or, do I have to make a baja module that executes a javascript?ã >ã > > make a baja that executes the .js example....ã >ã > > :top EXEC "?s3.js" # should only see in a shell change PAUSE GOTOã > > topã >ã > > replace s3 with your shell... the loop is so you can break out of theã > > js, a reload... this also works for changing shells... your js shellã > > will need to detect the shell changed and exit the js.ã >ã > I know this is an ancient thread, but it might be worth mentioningã > somewhere in the documentation. I spent a lot of time tracking this downã > last night, and then a lot of wasted time trying to figure out why once Iã > changed to my custom shell, I couldn't change out of it without re-loggingã > (because I's an idiot at 3am).ã >ã > The snippet I used to detect the shell change (to break out of the shellã > and allow another one to take over) was this:ã >ã > if(user.command_shell.toUpperCase() != "MYSHELL") {ã > exit();ã > }ã >ã > Is this the cleanest way to handle it?ããThat's pretty much how Deuce's lightbar/drop-down shell does it (lbshell.js).ãTake a look-see.ãã digital manããSynchronet "Real Fact" #0:ãDevelopment began in 1990 of the (unnamed at the time) Synchronet BBS software.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã