Password Menu - using "*"
Hi. Last week I read here about doing menus with passwords. Very nice. When using it on my DVD, I made some new steps to make menu to show "
**" when typing the password. Maybe it can help some of you. Lets go:
1. My idea was to make a menu with 4 buttons (numbers 1, 2, 3 and 4), with two diferent passwords: if the user type the correct password "2323" he'll go to one menu and if he types "3232" will go to another menu.
2. I made a main password menu, with the buttons 1, 2, 3 and 4 and a empty field like a text box to simulate the "*" be showing while typing.
3. I used the 2 scripts showned here by Drew13 ( http://discussions.apple.com/thread.jspa?messageID=3123941�).
4. I created 3 copies of my main menu, the first with one "*" on the password field, another with 2 "*" and other one with 3. Making:
Menu 1 to show:
Password: *
Menu 2 to show:
Password: **
Menu 3 to show:
Password: *
I didn't make a menu 4, because when the user choose the correct last character it automaticaly goes to the menu the password correspond.
5. In the CLEARVARIABLES Script from Drew13 I put "mov GPRM 7,0" before the last line ("Jump Password:Button1"). Because I need a new variable to make me know wich * screen I need to show.
6. So I created a copy called CLEARVARIABLES-1, with this structure:
add GPRM 7,10"
mov ACTION, 0
mov BUTTON, 0
mov SEQUENCE, 0
Jump Password-1::Button 1 if (GPRM 7 <= 10)
Jump Password-2::Button 1 if (GPRM 7 <= 20)
Jump Password-3::Button 1 if (GPRM 7 <= 30)
Jump CLEARVARIABLES if (GPRM 7 <= 40)
7. In DECRYPTER script, after line 11 (lines 12 to 23) I wrote:
Jump SEQ1A if (SEQUENCE = 2000)
Jump SEQ1A if (SEQUENCE = 3000)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2300)
Jump SEQ1A if (SEQUENCE = 3200)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2320)
Jump SEQ1A if (SEQUENCE = 3230)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2323)
Jump SEQ1A if (SEQUENCE = 3232)
Jump CLEARVARIABLES-1
[don't forget to change the lines 8 to 11 to "goto" the correct lines 12, 15, 18 and 21]
8. The SEQ1A script is:
add GPRM 7,10
Jump Password-1::Button 1 if (GPRM 7 <= 10)
Jump Password-2::Button 1 if (GPRM 7 <= 20)
Jump Password-3::Button 1 if (GPRM 7 <= 30)
Jump CLEARVARIABLES if (GPRM 7 <= 40)
9. This is not so dificult, but if you have any doubt or suggestion, please ask me.
Luiz
1. My idea was to make a menu with 4 buttons (numbers 1, 2, 3 and 4), with two diferent passwords: if the user type the correct password "2323" he'll go to one menu and if he types "3232" will go to another menu.
2. I made a main password menu, with the buttons 1, 2, 3 and 4 and a empty field like a text box to simulate the "*" be showing while typing.
3. I used the 2 scripts showned here by Drew13 ( http://discussions.apple.com/thread.jspa?messageID=3123941�).
4. I created 3 copies of my main menu, the first with one "*" on the password field, another with 2 "*" and other one with 3. Making:
Menu 1 to show:
Password: *
Menu 2 to show:
Password: **
Menu 3 to show:
Password: *
I didn't make a menu 4, because when the user choose the correct last character it automaticaly goes to the menu the password correspond.
5. In the CLEARVARIABLES Script from Drew13 I put "mov GPRM 7,0" before the last line ("Jump Password:Button1"). Because I need a new variable to make me know wich * screen I need to show.
6. So I created a copy called CLEARVARIABLES-1, with this structure:
add GPRM 7,10"
mov ACTION, 0
mov BUTTON, 0
mov SEQUENCE, 0
Jump Password-1::Button 1 if (GPRM 7 <= 10)
Jump Password-2::Button 1 if (GPRM 7 <= 20)
Jump Password-3::Button 1 if (GPRM 7 <= 30)
Jump CLEARVARIABLES if (GPRM 7 <= 40)
7. In DECRYPTER script, after line 11 (lines 12 to 23) I wrote:
Jump SEQ1A if (SEQUENCE = 2000)
Jump SEQ1A if (SEQUENCE = 3000)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2300)
Jump SEQ1A if (SEQUENCE = 3200)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2320)
Jump SEQ1A if (SEQUENCE = 3230)
Jump CLEARVARIABLES-1
Jump SEQ1A if (SEQUENCE = 2323)
Jump SEQ1A if (SEQUENCE = 3232)
Jump CLEARVARIABLES-1
[don't forget to change the lines 8 to 11 to "goto" the correct lines 12, 15, 18 and 21]
8. The SEQ1A script is:
add GPRM 7,10
Jump Password-1::Button 1 if (GPRM 7 <= 10)
Jump Password-2::Button 1 if (GPRM 7 <= 20)
Jump Password-3::Button 1 if (GPRM 7 <= 30)
Jump CLEARVARIABLES if (GPRM 7 <= 40)
9. This is not so dificult, but if you have any doubt or suggestion, please ask me.
Luiz
Dual 2GHz PowerMac G5 2.5RAM, Mac OS X (10.4.7)