Page 1 of 1

How to make a plugin and protect it

Posted: Sun Aug 13, 2017 9:16 am
by mrcoollion
Hi guy's and girls,

I need some help here.

I am struggling on how to make a plugin with some handlers I have made. I find the way Livecode describes me how to do this not easy to understand https://livecode.com/how-to-create-plug ... e-8-0-ide/.

What I want to do is to have my own handlerds (routines) available to me as a plugin (or extension?) and easy to manage (script only stack?)
I also need those handlers to be protected because some of them are specialized encription routines.
E.g. like the DGH (Data Grid Helper) or NativeSoft DataTree works... ?

Can you help me to understand how to achieve this and how to add such plugins to a stack for usage?

Paul

Re: How to make a plugin and protect it

Posted: Sun Aug 13, 2017 10:58 am
by AndyP
It sounds like you would be better served by creating a library stack rather than a plugin.

Just create all the routines you wish to use in a seperate stack, e.g. mylibrary.livecode

then in any stack you wish to make these routines available add to the openStack handler

Code: Select all

start using stack "mylibrary"
If you are using a paid for version of Livecode then you can use

Code: Select all

 set the passKey of stack to passwordString
to protect your stacks.

Re: How to make a plugin and protect it

Posted: Sun Aug 13, 2017 7:15 pm
by mrcoollion
Thanks AndyP,

I will give it a try.

Regards,

Paul