Locking a stack with passkey

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Locking a stack with passkey

Post by Obleo » Sat Oct 21, 2006 7:09 am

Hello,

Ok I am confused.

I tried searching for this as; lock , lock stack , password lock, passkey lock, password stack

the only thing I could come up with is set a password for a stack, or passkey for a stack which did not seem to work at all.

I am missing something.

Any help into the right direction is appreciated.

-obleo

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sat Oct 21, 2006 9:30 am

Hi obleo,

what exactly do you want to do? Setting the password for a stack while only prevent other coders see your scripts. Do you want to build a trial of your app. ? If so, you will need to roll something on your own. There are a couple of options you have with this. Depending if you want to release a trial (cripleware) or make the app only accessable if the password is entered.

All the best,

Malte

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Sun Oct 22, 2006 12:31 am

malte wrote: Setting the password for a stack while only prevent other coders see your scripts.


Yes this interest me. For a library plug-in stack. I tried to figure this out but it just seems like it does not lock the stacks. I tied setting can't modify to true which seems to work for every thing but opening a script window with the script in it. Always when I think I may have figure it out, I just end up, back at square one.

thanks,

-obleo

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sun Oct 22, 2006 9:13 am

Hi obleo,

if you want to password protect the script you set the password of the stack. However, you will see this effect only if the stack has been removed from memory once and then reloaded. If you then try to edit the script you will be asked for the password. A corresponding property of the stack is the passkey.

If your stacks password is "test" you might set the passkey of the stack to "test" and will be allowed to edit the script again.

Hope this helps,

Malte

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Mon Oct 23, 2006 1:18 am

Thank You.

It was good to know I was in the ballpark. That remove from memory, did the trick. Also thanks for the tip on password and passkey.

I appreciate the help very much. :D

Post Reply