Questions About Plugin Development

 
#1

I have a couple of questions that I hope you can help me with. I didn't realize that some of these issues existed until I loaded the plugin on a non-development machine.

What would be the proper way to write a text file containing your configuration settings for you app to the %public%\Documents\EZ-Builder\Plugins\[GUID] directory or should I be writing this file somewhere else?

Is there a way to allow some functions in my plugin to be startable from a script? If so, can you please let me know how this is done?

I think this is all for now, but I am sure that I will come up with some more in time.

Thanks
David

#2

I think I found the configuration answer

http://www.ez-robot.com/Tutorials/UserTutorials/146/12

#3

Yes, the config data must be saved with the project. Do not, under any circumstances save any user data outside of the project data.

Follow that tutorial and you're good to go! Smile

If you need additional examples on how to use it, check the source of my plugins. They all have a configuration screen.

#4

Thanks DJ. Is there a way to expose some functions to be called from the script component? I want to have the start and stop exposed mainly.

#5

Can you expand on that question?

The entire scripting engine is exposed. I'll direct you to the commands if I understand the question. Are you asking to bind to a ControlCommand()?

#6

I'll post it tomorrow. Going to go hang with the family but basically

Commandcontrol command in the script engine is what I want to use.

#7

All my plugins have an example...

There's two override methods you care about. One method will return the possible ControlCommand() parameters. The other will bind to the ControlCommand().

Take a look at any of the plugins

#8

Here's a link to the step that i created which demonstrates how to bind to the ControlCommand(): https://www.ez-robot.com/Tutorials/UserTutorials/146/15