• Text Box Input

    From maskreet@21:1/114 to All on Thursday, October 27, 2016 16:13:00
    Hey, just wondering if the Mystic text box can accept entered data, as in a username and password? I know it does "Y/N" questions, and hotkey input, but fields would be cool if it's doable.

    The way my matrix login is now, it pops the "username/password" prompts at
    the bottom of the screen, overwriting some of the matrix ansi.

    I'm looking now to see if it's possible, but I haven't had any luck yet. If anyone knows, please lemme know. Thanks!

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)
  • From Pequito@21:1/126 to maskreet on Thursday, October 27, 2016 15:33:00
    On 10/27/16, maskreet said the following...

    Hey, just wondering if the Mystic text box can accept entered data, as
    in a username and password? I know it does "Y/N" questions, and hotkey input, but fields would be cool if it's doable.

    The way my matrix login is now, it pops the "username/password" prompts
    at the bottom of the screen, overwriting some of the matrix ansi.

    I'm looking now to see if it's possible, but I haven't had any luck yet. If anyone knows, please lemme know. Thanks!


    Are you doing this via MPL? If so then use the input command:

    Function INPUT (Field: Byte, Max: Byte, Mode: Byte, Default: String) : String

    Var Str String
    Write ('Enter something: ')
    Str := Input (30, 30, 1, '')

    This is very basic but hope you get the idea from it. :P

    Cheers!
    Pequito

    |08+- |10$s.s$s.s$ |08------------------------------------+
    |08| |10$ý"$$$"ý$ |15tbbs.homeip.net |08|
    |08| |10 .$$$. winkle |02BB|10S |07tbbs.homeip.net:8080 |08|
    |08+--|10 .$$$$$. |08-------------------------------------+
    |10 $ý"~"ý$ |07Christopher Malo |15aka |07Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From Avon@21:1/101 to maskreet on Friday, October 28, 2016 11:50:00
    On 10/27/16, maskreet pondered and said...

    Hey, just wondering if the Mystic text box can accept entered data, as
    in a username and password? I know it does "Y/N" questions, and hotkey input, but fields would be cool if it's doable.

    I think so... as always I am checking this during my work breaks so will look further into it tonight when I get home :)

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From dream master@21:1/163 to maskreet on Thursday, October 27, 2016 20:30:00
    On 10/27/16, maskreet said the following...
    I'm looking now to see if it's possible, but I haven't had any luck yet. If anyone knows, please lemme know. Thanks!

    prolly faster and easier to mpl it

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic |08[|15dreamland|09.|15darktech|09.|15org|08]

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From Gryphon@21:1/120 to maskreet on Friday, October 28, 2016 08:46:00
    On 10/27/16, maskreet said the following...

    Hey, just wondering if the Mystic text box can accept entered data, as
    in a username and password? I know it does "Y/N" questions, and hotkey input, but fields would be cool if it's doable.

    The way my matrix login is now, it pops the "username/password" prompts
    at the bottom of the screen, overwriting some of the matrix ansi.

    I'm looking now to see if it's possible, but I haven't had any luck yet. If anyone knows, please lemme know. Thanks!

    Are you doing this from a default.txt prompt? You can use the #X display
    code to put the box anyplace on the screen that you want. Then you can use
    the [X and [Y commands to move the curse to the desired location. You can append all the different MCI display codes on the same line. That helps, because it gives you a way to have multiple functions on one single prompt.

    000 |DFpreuser||#X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)
  • From maskreet@21:1/114 to Pequito on Friday, October 28, 2016 12:07:00
    On 10/27/16, Pequito said the following...

    On 10/27/16, maskreet said the following...

    Hey, just wondering if the Mystic text box can accept entered data, a in a username and password? I know it does "Y/N" questions, and hotke input, but fields would be cool if it's doable.

    The way my matrix login is now, it pops the "username/password" promp at the bottom of the screen, overwriting some of the matrix ansi.

    I'm looking now to see if it's possible, but I haven't had any luck y If anyone knows, please lemme know. Thanks!


    Are you doing this via MPL? If so then use the input command:

    Function INPUT (Field: Byte, Max: Byte, Mode: Byte, Default: String) : String

    Var Str String
    Write ('Enter something: ')
    Str := Input (30, 30, 1, '')

    This is very basic but hope you get the idea from it. :P

    Cool, but I don't know the first thing about MPL. I figure it can probably be run from the matrix menu, in place of my Login command, but I was hoping to have it as a popup box like Mystic's internal one, where it saves the screen behind it. Dunno if this is possible.

    For now I just have it clear the screen to show the login prompt.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)
  • From maskreet@21:1/114 to Gryphon on Friday, October 28, 2016 12:23:00
    On 10/28/16, Gryphon said the following...

    On 10/27/16, maskreet said the following...

    Hey, just wondering if the Mystic text box can accept entered data, a in a username and password? I know it does "Y/N" questions, and hotke input, but fields would be cool if it's doable.

    The way my matrix login is now, it pops the "username/password" promp at the bottom of the screen, overwriting some of the matrix ansi.

    I'm looking now to see if it's possible, but I haven't had any luck y If anyone knows, please lemme know. Thanks!

    Are you doing this from a default.txt prompt? You can use the #X display code to put the box anyplace on the screen that you want. Then you can use the [X and [Y commands to move the curse to the desired location.
    You can append all the different MCI display codes on the same line.
    That helps, because it gives you a way to have multiple functions on one single prompt.

    000 |DFpreuser|#X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    That places the prompt at an X and Y coordinate, but it doesn't show a box
    for some reason. Looking on the Mystic wiki, I see I, V, B and Y for
    different types of text boxes, but nothing for X. Your example places everything before the X and Y coords at the top of the screen, and only
    places the text at the coordinates.

    Thank you for the help, though, I do appreciate it.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)
  • From Gryphon@21:1/120 to maskreet on Friday, October 28, 2016 16:15:00
    On 10/28/16, maskreet said the following...

    Are you doing this from a default.txt prompt? You can use the #X dis code to put the box anyplace on the screen that you want. Then you c use the [X and [Y commands to move the curse to the desired location. You can append all the different MCI display codes on the same line. That helps, because it gives you a way to have multiple functions on single prompt.

    000 |DFpreuser|#X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    That places the prompt at an X and Y coordinate, but it doesn't show a
    box for some reason. Looking on the Mystic wiki, I see I, V, B and Y for different types of text boxes, but nothing for X. Your example places everything before the X and Y coords at the top of the screen, and only places the text at the coordinates.

    I may have gotten the formatting wrong, so you'll have to double-check my
    work. Also, the Mystic mesage reader will strip out some of the pipe codes.
    I know that it striped out a pipe between DF and #X The DF<filename> code requires a pipe at each end. Then you can add a pipe before the #X

    000 |DFpreuser| |#X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    I added a space after it. Lets see if that gets stripped or not.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)
  • From maskreet@21:1/114 to Gryphon on Saturday, October 29, 2016 12:49:00
    On 10/28/16, Gryphon said the following...

    That places the prompt at an X and Y coordinate, but it doesn't show box for some reason. Looking on the Mystic wiki, I see I, V, B and Y different types of text boxes, but nothing for X. Your example places everything before the X and Y coords at the top of the screen, and on places the text at the coordinates.

    I may have gotten the formatting wrong, so you'll have to double-check my work. Also, the Mystic mesage reader will strip out some of the pipe codes. I know that it striped out a pipe between DF and #X The DF<filename> code requires a pipe at each end. Then you can add a pipe before the #X

    000 |DFpreuser| #X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    That got it. Thanks, man!

    I took out the display file part, since the boxes are supposed to keep the prior screen, and it does, so that was cool. Dicked around with coords and box size parameters, and it's good to go!

    BTW, how did you get the info for #X? Like I said, I looked on the wiki and there wasn't anything in there for accepting any other input aside from Y/N
    and one-key hotkeys.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)
  • From Gryphon@21:1/120 to maskreet on Saturday, October 29, 2016 23:00:00
    On 10/29/16, maskreet said the following...

    On 10/28/16, Gryphon said the following...

    That places the prompt at an X and Y coordinate, but it doesn't box for some reason. Looking on the Mystic wiki, I see I, V, B a different types of text boxes, but nothing for X. Your example p everything before the X and Y coords at the top of the screen, a places the text at the coordinates.

    I may have gotten the formatting wrong, so you'll have to double-chec work. Also, the Mystic mesage reader will strip out some of the pipe codes. I know that it striped out a pipe between DF and #X The DF<filename> code requires a pipe at each end. Then you can add a pi before the #X

    000 |DFpreuser| #X#1#Header#25#10#55#14#|[X27|[Y12Username: |XX

    That got it. Thanks, man!

    I took out the display file part, since the boxes are supposed to keep
    the prior screen, and it does, so that was cool. Dicked around with
    coords and box size parameters, and it's good to go!

    BTW, how did you get the info for #X? Like I said, I looked on the wiki and there wasn't anything in there for accepting any other input aside from Y/N and one-key hotkeys.

    I got the info for #X from the whatsnew.txt file.

    + New MCI code draws a box using a specific theme style. It does not take
    input or erase itself at all.

    Format : |#X#<style>#<header>#<x1>#<y1>#<x2>#<y2>#
    Example : |#X#2# My Header #20#10#60#16#
    Result : Opens a box at X20 Y10 to X60 Y16 using style 2 and
    header " My Header "

    If you are using it on a default.txt menu prompt, then all you are doing is showing the prompt before mystic does a call for input. The 000 text prompt
    is whats displayed before Mystic asks the caller for their username. So the
    #X code is not actually doing any input.

    As a side note, since #X doesn't clear or restore the screen when it's done, you can stack the 'SS' and 'SR' mci codes to first save the screen before drawing the box, then SR to restore the screen to the state it was in before the box was drawn.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)
  • From maskreet@21:1/114 to Gryphon on Sunday, October 30, 2016 12:34:00
    On 10/29/16, Gryphon said the following...

    I got the info for #X from the whatsnew.txt file.

    Ah, okay, didn't check there.

    As a side note, since #X doesn't clear or restore the screen when it's done, you can stack the 'SS' and 'SR' mci codes to first save the screen before drawing the box, then SR to restore the screen to the state it
    was in before the box was drawn.

    Going to try that now, I know when it prompts for "three bad password
    attempts" the screen looks funky. Thanks again, man!

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)