Computer Science Canada i was wondering if i can creat a password window... |
Author: | monkeyman [ Tue Jan 18, 2005 5:30 pm ] |
Post subject: | i was wondering if i can creat a password window... |
Ok; I know how to create the password window on turing, but is there a way to change the user's password (INTO) stars so others can't see it; For example Please enter your username and password! Username: Monkey man Password : ******* |
Author: | Bacchus [ Tue Jan 18, 2005 5:34 pm ] |
Post subject: | |
use noecho in setscreen (or View.Set) and then output watever you want when they type it |
Author: | monkeyman [ Tue Jan 18, 2005 5:36 pm ] |
Post subject: | |
Bacchus wrote: use noecho in setscreen (or View.Set) and then output watever you want when they type it
But how would i output whatever I want? |
Author: | Delos [ Tue Jan 18, 2005 5:58 pm ] |
Post subject: | |
This depends entirely on what you mean by 'password window'. If you mean a GUI styled textfield entry à la Windows... - this would be a screen in which input is given, and displayed as * or some other indistinguishable character. For this, you could use actual GUI. commands, but those tend to get complicated and irritating and such. Or perhaps you just mean input that is hidden...like the stars example. In this case you would use getch(). You would get a single character at a time, and display a * instead of that character. When the input is complete, it may be compared to the actual password and so on and so forth. If you really do want to work with opening and closing windows though, you'll have to use Window. commands. Press F10. |
Author: | Andy [ Tue Jan 18, 2005 6:01 pm ] |
Post subject: | |
this question has been asked many many times.. u can use the search function... |
Author: | xHoly-Divinity [ Tue Jan 18, 2005 6:18 pm ] |
Post subject: | |
Try looking in turing help under the GUI module |