• custom matrix login menu

    From Lesser Keys@VERT/STARR to All on Thu Oct 24 22:28:27 2013
    I am working on a custom logon matrix menu. I have a few questions. Firstãquestion, Is there a way to load a picture into the script without it redrawingãthe menu every time someone presses an arrow key to move. I cant figure it out.ãIt works ok I guess but the script must redraw the menu every time someoneãmoves the light bar...And also I would like to put ansi around the enter userãname and password part. I cant seem to get the ansi to fit around the textãinstead it covers the text or it is in the wrong place...ãthanksãSolomon's Temple * telnet (wm.myftp.org)ãããã---ã þ Synchronet þ Solomon's Temple *telnet://wm.myftp.orgã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Fri Oct 25 20:30:36 2013
    Re: custom matrix login menuã By: Lesser Keys to All on Thu Oct 24 2013 22:28:27ãã LK> I am working on a custom logon matrix menu. I have a few questions. Firstã LK> question, Is there a way to load a picture into the script without itã LK> redrawing the menu every time someone presses an arrow key to move. I cantã LK> figure it out. It works ok I guess but the script must redraw the menuã LK> every time someone moves the light bar...And also I would like to put ansiã LK> around the enter user name and password part. I cant seem to get the ansiã LK> to fit around the text instead it covers the text or it is in the wrongã LK> place... thanksããGenerally speaking (without seeing the specifics of your code), what you'd needãto do is to display the ANSI, then display your lightbar menu and have it doãbasically an input loop and respond to arrow keys, etc. and only redraw theãmenu components.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Lesser Keys@VERT/STARR to Nightfox on Sat Oct 26 04:22:04 2013
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Fri Oct 25 2013 08:30 pmãã Ni> need to do is to display the ANSI, then display your lightbar menu andã Ni> have it do basically an input loop and respond to arrow keys, etc. andã Ni> only redraw the menu components.ãhow would I go about doing this lol?ãSolomon's Temple * telnet (wm.myftp.org)ãããã---ã þ Synchronet þ Solomon's Temple *telnet://wm.myftp.orgã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Sat Oct 26 08:47:07 2013
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Sat Oct 26 2013 04:22:04ãã Ni>> need to do is to display the ANSI, then display your lightbar menuã Ni>> and have it do basically an input loop and respond to arrow keys,ã Ni>> etc. and only redraw the menu components.ãã LK> how would I go about doing this lol?ããSince you're asking this in the Synchronet Baja message area, I suppose youãwant a Baja solution - But unfortunately I don't have a solution in Baja toãoffer you. But if you want, you can take a look at my JavaScript login matrixãas an example:ãftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddMat109.zipããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Lesser Keys@VERT/STARR to Nightfox on Sat Oct 26 16:06:01 2013
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Sat Oct 26 2013 08:47 amãã Ni> login matrix as an example:ã Ni> ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddMat109.zipãLol I am not good with javascript at all......ãToo much stuff to learn...not a lot of time....ãI have been running a system for 3 maybe 4 months...And I can't just jump intoãjavascript full force, when I am trying to learn 900 other things! :(ããI wish js was easier. Some of you guys say it is...But I say it's 200 timesãmore difficult. The syntax looks like something from another planet...I canãlook at baja all day and just know what the script is doing...I can't do thatãwith javascript. I have looked at your logon matrix. It's way over my head.ãSolomon's Temple * telnet (wm.myftp.org)ãããã---ã þ Synchronet þ Solomon's Temple *telnet://wm.myftp.orgã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Sun Oct 27 00:24:41 2013
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Sat Oct 26 2013 16:06:01ãã Ni>> login matrix as an example:ã Ni>> ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddMat109.zipãã LK> Lol I am not good with javascript at all......ã LK> Too much stuff to learn...not a lot of time....ã LK> I have been running a system for 3 maybe 4 months...And I can't just jumpã LK> into javascript full force, when I am trying to learn 900 other things! :(ããWell you were the one asking for help, and I've offered my matrix as anãexample.. Take it or leave it.ãã LK> I wish js was easier. Some of you guys say it is...But I say it's 200ã LK> times more difficult. The syntax looks like something from anotherã LK> planet...I can look at baja all day and just know what the script isã LK> doing...I can't do that with javascript.ããInteresting, I tend to feel the opposite, that JavaScript is easier toãunderstand. But that may be because most of the programming languages I'veãused have similar syntax. Baja feels more like BASIC or assembly to me. I doãhave the feeling that you can do more in JavaScript with fewer lines of code.ããOne advantage JavaScript has is that it's a lot more powerful. It seems thatãSynchronet is going further in the direction of using JavaScript as its primaryãscripting language.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Lesser Keys@VERT/STARR to Nightfox on Sun Oct 27 18:04:22 2013
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Sun Oct 27 2013 12:24 amãã Ni> Well you were the one asking for help, and I've offered my matrix as anã Ni> example.. Take it or leave it.ãI'm using it right now. I seen how how got the arrow keys to work with theãlightbar! I guess my question would be how do you know were the text and lightãbar menu is going to show up on screen? Do you have to set a specific locationãfor the lightbar menu to be on the screen?ã Ni> Interesting, I tend to feel the opposite, that JavaScript is easier toã Ni> understand. But that may be because most of the programming languagesã Ni> I've used have similar syntax. Baja feels more like BASIC or assembly toã Ni> me. I do have the feeling that you can do more in JavaScript with fewerã Ni> lines of code.ãI agree somethings in js the code just looks more powerful to me. One line ofãcode does several different things. I grew up as a kid using BASIc and assemblyãso baja looks easier to me. The scripts themselves look more familiar.. I doãunderstand some of the things that java script can do, I am toying with js too!ãMaybe in a few months I will be coding js a little better than I am now. Atãleast I am starting to understand some of scripting for synchronet. Back in theãday when I tried to run a synchronet bbs. I just ripped a bunch of ansi art,ãnot changing any of the scripts...That was a sad bbs!!! I thought it wasãcool....but got flamed big time for running it.ãthanks nightfox take careãSolomon's Temple * telnet (wm.myftp.org)ãããã---ã þ Synchronet þ Solomon's Temple *telnet://wm.myftp.orgã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Sun Oct 27 19:40:16 2013
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Sun Oct 27 2013 18:04:22ãã LK> I'm using it right now. I seen how how got the arrow keys to work with theã LK> lightbar! I guess my question would be how do you know were the text andã LK> light bar menu is going to show up on screen? Do you have to set aã LK> specific location for the lightbar menu to be on the screen?ããYes, the script knows where the menu is on the screen and it knows the menu'sãsize, so with that information, it's able to know where to draw the menu items.ãAnd it knows the selected item, which is the one that is highlighted with theãlightbar.ãã LK> I agree somethings in js the code just looks more powerful to me. Oneã LK> line of code does several different things. I grew up as a kid usingã LK> BASIc and assembly so baja looks easier to me. The scripts themselvesã LK> look more familiar..ããYeah, languages that are similar to other languages you already know areãdefinitely easier to learn. :)ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Lesser Keys@VERT/STARR to Nightfox on Sun Apr 5 15:00:40 2015
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Fri Oct 25 2013 08:30 pmãã LK>> I am working on a custom logon matrix menu. I have a few questions.ã LK>> First question, Is there a way to load a picture into the scriptã LK>> without it redrawing the menu every time someone presses an arrowã LK>> key to move. I cant figure it out. It works ok I guess but theã LK>> script must redraw the menu every time someone moves the lightã LK>> bar...And also I would like to put ansi around the enter user nameã LK>> and password part. I cant seem to get the ansi to fit around theã LK>> text instead it covers the text or it is in the wrong place...ã LK>> thanksã Ni> Generally speaking (without seeing the specifics of your code), what you'dã Ni> need to do is to display the ANSI, then display your lightbar menu andã Ni> have it do basically an input loop and respond to arrow keys, etc. andã Ni> only redraw the menu components.ããOkay, thanks! I have another question. It maybe stupid, or not make sence. Howãdo I load the ansi, and embed the lightbar menu inside tha ansi.ãI guess I could execute the baja script for the light bar inside the ansi file.ãUsing the following @EXEC:MODNAME@ãAnd for the curor inside tha ansi byã@codes@ãUP Move cursor up one row (ANSI) 3.0bãUP:n Move cursor up n rows (ANSI) 3.0bãDOWN Move cursor down one row (ANSI) 3.0bãDOWN:n Move cursor down n rows (ANSI) 3.0bãRIGHT Move cursor right one column (ANSI) 3.0bãRIGHT:n Move cursor right n columns (ANSI) 3.0bãLEFT Move cursor left one column (ANSI) 3.0bãLEFT:n Move cursor left n columns (ANSI) 3.0bãGOTOXY:x,y Move cursor to x/y (1-based) (ANSI) 3.0bãPUSHXY Save current cursor position (ANSI) 3.0bãPOPXY Restore saved cursor position (ANSI) 3.0bããInside the ANSI I am trying to display. ãI am thinking I would have to create a color to highlight the selected text.ãAlso, setting a variable for each arrow key, or by using w,a,s,d. I have noãidea how to set a variable for arrow keys..I am sifting through bajaãdocumentation for find this.ãI am guessing I need to find some lightbar *.src files for baja to as well. Iãcan't seem to find any.ã ãThanks for your time.ããRegards,ããã... A seeming ignorance is often a most necessary part of worldly knowledge.ãSolomon's Temple BBSãHome to Starr-NetãTelnet://solomonstemplebbs.com, https://solomonstemplebbs.comããããã---ã þ Synchronet þ Solomon's Temple telnet://solomonstemplebbs.com, Home to Starr-Netã
  • From Lesser Keys@VERT/STARR to Nightfox on Sun Apr 5 15:02:51 2015
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Sun Oct 27 2013 07:40 pmãã LK>> I'm using it right now. I seen how how got the arrow keys to workã LK>> with the lightbar! I guess my question would be how do you know wereã LK>> the text and light bar menu is going to show up on screen? Do youã LK>> have to set a specific location for the lightbar menu to be on theã LK>> screen?ãã Ni> Yes, the script knows where the menu is on the screen and it knows theã Ni> menu's size, so with that information, it's able to know where to draw theã Ni> menu items. And it knows the selected item, which is the one that isã Ni> highlighted with the lightbar.ãã LK>> I agree somethings in js the code just looks more powerful to me.ã LK>> One line of code does several different things. I grew up as a kidã LK>> using BASIc and assembly so baja looks easier to me. The scriptsã LK>> themselves look more familiar..ãã Ni> Yeah, languages that are similar to other languages you already know areã Ni> definitely easier to learn. :)ãããMy problem is Java Script is too complicated for my incompetant brain, to wrapãmy head around.ãã... Not tonight honey, ...I feel a modem coming on.ãSolomon's Temple BBSãHome to Starr-NetãTelnet://solomonstemplebbs.com, https://solomonstemplebbs.comããããã---ã þ Synchronet þ Solomon's Temple telnet://solomonstemplebbs.com, Home to Starr-Netã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Sun Apr 5 13:09:30 2015
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Sun Apr 05 2015 15:00:40ãã LK> Okay, thanks! I have another question. It maybe stupid, or not make sence.ã LK> How do I load the ansi, and embed the lightbar menu inside tha ansi.ã LK> I guess I could execute the baja script for the light bar inside the ansiã LK> file. Using the following @EXEC:MODNAME@ã LK> And for the curor inside tha ansi byã LK> @codes@ããIt might be simpler to have your script move the cursor around rather thanãusing @-codes to do so. Your script can display the ANSI, then (if you'reãusing JavaScript) can call the console.gotoxy() method to move the cursor, andãthen draw the menu.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Lesser Keys on Mon Apr 6 16:55:36 2015
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Sun Apr 05 2015 03:00 pmãã > idea how to set a variable for arrow keys..I am sifting through bajaã > documentation for find this. I am guessing I need to find some lightbarã > *.src files for baja to as well. I can't seem to find any.ããThere's an example Baja login matrix using lightbars in exec/matrix.src. It's a ãvery simple example which doesn't use any external ANSI files or @-codes.ãã digital manããSynchronet "Real Fact" #43:ãSynchronet added JavaScript suppport with v3.10a (2001).ãNorco, CA WX: 61.8øF, 35.0% humidity, 10 mph SSE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Lesser Keys@VERT/STARR to Nightfox on Wed Apr 15 15:07:14 2015
    Re: custom matrix login menuã By: Nightfox to Lesser Keys on Sun Apr 05 2015 01:09 pmãã Ni> It might be simpler to have your script move the cursor around ratherã Ni> than using @-codes to do so. Your script can display the ANSI, then (ifã Ni> you're using JavaScript) can call the console.gotoxy() method to moveã Ni> the cursor, and then draw the menu.ããThanks! How do I set a command key for the arrow keys. For example if The userãpresses down one time, so that the highlighted text box moves down one space.ãAlso, how does one set a command key for two spaces down?ãSorry I am a newbie! :Pãã... Anything anybody can say about America is true.ãSolomon's Temple BBSãHome to Starr-NetãTelnet://solomonstemplebbs.com, https://solomonstemplebbs.comããããã---ã þ Synchronet þ Solomon's Temple telnet://solomonstemplebbs.com, Home to Starr-Netã
  • From Nightfox@VERT/DIGDIST to Lesser Keys on Wed Apr 15 18:17:31 2015
    Re: custom matrix login menuã By: Lesser Keys to Nightfox on Wed Apr 15 2015 15:07:14ãã LK> Thanks! How do I set a command key for the arrow keys. For example if Theã LK> user presses down one time, so that the highlighted text box moves downã LK> one space. Also, how does one set a command key for two spaces down?ã LK> Sorry I am a newbie! :PããWell I haven't actually done much Baja for Synchronet (I mainly write mods inãJavaScript), so there may be someone else more knowledgeable on that than I am.ãBut responding to a keypress in Baja is just a matter of using the cmdkeyãcommand. In JavaScript, the down arrow key is defined as '\x0a' - maybe theãsame can be used in Baja? I'm not sure. sbbsdefs.js (in sbbs\exec\load) hasãdefinitions (for JavaScript) for the arrow keys and others - Search for KEY_UPãto find the section where the arrow keys are defined there.ããAlso, the following is the Baja documentation, which should explain how toãrespond to keypresses and everything else Baja can do:ãhttp://www.synchro.net/docs/baja.htmlããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã