Page 1 of 1 1
Topic Options
#643 - 1999-10-11 04:44 AM GETS with invisible text
Anonymous
Unregistered


I need to ask the user its password


I there a way with GETS or other , to
type in "dark" that is user input not
visible ?

Top
#644 - 1999-10-12 12:28 AM Re: GETS with invisible text
Anonymous
Unregistered


Hi Francois,

I tried just about everything I could think of, and can't make it work. I tried using Color() to set display colors to n/n, but the system ignored this setting and did w/n. I tried to hide the console and get the information, but that didn't work either. You might try shrinking the display window, I didn't try that yet. I think you might wind up having to write a small program to accept some input will displaying asterices that then saves the input to a file or to the registry and then read that from your script. I can't think of anything else to try.

------------------
Regards,

Brad
Consultant
Net InfraStructure, Inc

Top
#645 - 1999-10-12 01:17 AM Re: GETS with invisible text
Flavien Offline
Getting the hang of it

Registered: 1999-07-21
Posts: 95
Loc: Geneva, Switzerland
Did you try with that: RedirectOutput("NUL",1)
Top
#646 - 1999-10-12 04:22 AM Re: GETS with invisible text
Anonymous
Unregistered


I succeed with color g/g

(or any other color)

Thanks

Top
#647 - 1999-10-12 08:15 AM Re: GETS with invisible text
Anonymous
Unregistered


I hadn't thought of using a different color than black! However, I had written a quick script to test this with yesterday. I made a change to have the user select a color then attempted to set the color display with that variable. I keep getting an error that I am using an invalid color argument. Does anyone know if it is possible to use a variable in the Color statement?

Here is the code I was using to test:

code:
CLS
COLOR g/n
at (7,10) "what color do you want to try?"
at (8,10) "n - black, b - blue, g - green, c - cyan, r - red, m - magenta,"
at (9,10) "y - yellow, w - white"
get $colr
at (3,12) "you chose "+$colr
at (10,10) "give me your password!"
color $colr/$colr
AT (11,10)
gets $password
color g+/r
at (15,15) "Your password is: "+$password

------------------
Regards,

Brad
Consultant
Net InfraStructure, Inc

Top
#648 - 1999-10-12 03:55 PM Re: GETS with invisible text
Anonymous
Unregistered


I couldn't get the variable to work with the color command either. Your best bet is probably using a case Select/Case setup.

color b/b ; default
get $colr
___select
_____case $colr = 'g'
_________color g/g
_____case $colr = 'w'
_________color w/w
etc..
etc..
___endselect

Mark Pearce
mpearce@nbase-xyplex.com

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 709 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.051 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org