View Full Version : i want to add password in my project can you help me for plz
melissa
04-23-2007, 11:25 AM
hi everyone
i want to add password in my project , i tried hardley but i didn`t find
the solution , can you help me for plz .
i mean is like serial or word .
Well... code it yourself.
It's easy using Lua...
Just add actions to the Project OnStartup Script...
mindstitchdr
04-23-2007, 11:42 AM
Straight from the Help section:
Add Password Protection
There are many instances requiring the user to be prompted for information that must not be visible on the screen, such as a password. In AutoPlay Media Studio this is accomplished by using a Dialog.PasswordInput action.
As an example, we will prompt the user for a password at the start of your program, and compare it to a stored value (thereby limiting access to your program to only those who know the password).
To accomplish this:
Insert the following script in your page's On Show event:
-- the 'correct' password
real_password = "password";
-- prompt the user to enter a password
user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
-- compare the user's password to the 'correct' password.
-- If the user supplies the wrong password, exit the program.
if real_password ~= user_password then
Application.Exit();
end
This script pops up a dialog box requesting the password. Whatever the user types in this dialog box appears as *******. If the correct password is entered, the program runs normally. If any other password is entered, the program will close.
melissa
04-24-2007, 10:50 AM
thank you very much
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.