Page 1 of 1

Find out if a plugin is enabled

PostPosted: Tue Dec 12, 2017 12:15 am
by coon
Hi,

I have noticed, that a plugin is loaded, even when it is not enabled. I think this is done so UCCNC can call Getproperties_event() to retreive the plugins information.

Is there a way for a plugin to find out if it is enabled?

Re: Find out if a plugin is enabled

PostPosted: Tue Dec 12, 2017 12:23 am
by Dan911
Yes it's in profile
Dan

Re: Find out if a plugin is enabled

PostPosted: Tue Dec 12, 2017 12:33 am
by coon
So you mean I have to open default.pro file and read it from there? There is no API function for it?

Re: Find out if a plugin is enabled

PostPosted: Tue Dec 12, 2017 12:44 am
by Dan911
coon wrote:So you mean I have to open default.pro file and read it from there? There is no API function for it?


Yes, UC.readkey.

coon you do have to put some effort in reading documentation like Robertspark already recommended and there's many here that will jump in and help.

Re: Find out if a plugin is enabled

PostPosted: Thu Dec 14, 2017 8:15 pm
by coon
No worries, I won't ask for every feature. I just needed a few information to get my pluginsystem working, which is finished now!

Thank's for your help, UC.readkey() did the trick.