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
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.how would I go about doing this lol?
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.
how would I go about doing this lol?
login matrix as an example: ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddMat109.zipLol I am not good with javascript at all......
login matrix as an example:
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.
Well you were the one asking for help, and I've offered my matrix as an 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?
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.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.
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?
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 am working on a custom logon matrix menu. I have a few questions.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.
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
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?
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.
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..
Yeah, languages that are similar to other languages you already know are definitely easier to learn. :)
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@
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.
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.
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
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 91 |
Nodes: | 16 (0 / 16) |
Uptime: | 21:26:40 |
Calls: | 5,074 |
Calls today: | 6 |
Files: | 8,491 |
Messages: | 352,986 |
Posted today: | 1 |