Jump to content

Need a bit of help..

MoJoMax

Hello, i'm making a program using autoplay media studio 8 (i know, no one uses it?)

Made a simple command that will 

ask the user for a product key or password to use the program

when the program starts, That works fine but

how could i make it so, if the user closes the program

and reopens it won't show the activation window anymore?

 

This is the code i currently have:

 

[correct_password = ture;

-- the 'correct' password
real_passwords = {"The key or password goes here", "", ""};


user_password = Dialog.PasswordInput("Password", "Please activate software!", MB_ICONEXCLAMATION);


for j in pairs(real_passwords) do
    if real_passwords[j] == user_password then

       result = Dialog.Message("", "Software has been activated!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
       

        correct_password = true;
        
    end
end


if not correct_password then
    result = Dialog.Message("Error", "Looks like you entered the wrong key. ", MB_GETPASS, MB_ICONSTOP, MB_DEFBUTTON1);
    result = DialogEx.Show("Dialog1", true, nil, nil);

    Application.Exit();
   
end
]

 

Any help is appreciated 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

@Sakuriru

The easy answer is what i'm looking for.

But i'm not able to do that.

tried making text files

but there's not preset  in autoplay media studio..

Some help is appreciated :)

Link to comment
Share on other sites

Link to post
Share on other sites

@Sakuriru

I was able to make a text file.

Indeed i got it to say what i want but 

i'm not sure exactly how to read it.

 

that was a long time ago.

and since did not advance on  the project.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×