Author Topic: Custom Plugin Design  (Read 12445 times)

0 Members and 1 Guest are viewing this topic.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Custom Plugin Design
« Reply #30 on: February 20, 2016, 03:05:56 PM »
Excellent work. Thank you

DexDeadly

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
    • View Profile
Re: Custom Plugin Design
« Reply #31 on: March 31, 2016, 02:02:42 AM »
Hello,

Is the attached 2012 Blank as well as the SharpDevelop still the way to go?  Is there an updated version for VoxCommando2?  I'm looking to try and create something for the Wunderlist API.  I saw a thread before where it was discussed using there email and SMTP within voxcommando but I"m not sure if that was due to no API at the time. There is a full API now available here

https://developer.wunderlist.com/documentation

I'm looking to see if I can create something now using this api and the template.  Please let me know if there is a newer template to use or not.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Custom Plugin Design
« Reply #32 on: March 31, 2016, 07:17:41 PM »
Yes you can use it. Just reference the latest plugininterface.dll and switch to .Net 4.5.1

The plugin template itself doesn't have much in it that would need to change.

If I can find time I'll upload a newer one but really there is no need.
« Last Edit: April 01, 2016, 09:43:17 AM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Custom Plugin Design
« Reply #33 on: March 31, 2016, 07:19:38 PM »
Better if you can use c# and visual studio. I can't imagine why anyone would want to use anything else!

DexDeadly

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
    • View Profile
Re: Custom Plugin Design
« Reply #34 on: April 01, 2016, 12:09:37 AM »
Sounds good, I just need to brush up on those languages.  I haven't touched them in years been mostly programming PHP/MySQL pages.  I'll go ahead and make sure they poing to .NET 4.1.  Hopefully i can get some real time aside to work on this :).

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Custom Plugin Design
« Reply #35 on: April 01, 2016, 09:38:55 AM »
Sorry, I meant 4.5.1

I will correct my post above.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Custom Plugin Design
« Reply #36 on: April 01, 2016, 10:38:17 AM »
Here is something a bit more recent to start from
« Last Edit: April 01, 2016, 02:52:18 PM by jitterjames »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Custom Plugin Design
« Reply #37 on: April 02, 2016, 10:08:04 AM »
We'll try to get some proper documentation up when we have more time. For now, here are a few notes to get you started.
----

NOTE: References here to C:\VCROOT refer always to your VoxCommando folder (i.e., your VC installation).

1. Choose a name for your plugin.

Plugin name should be short. It will be used as the first prefix for all action strings, the plugin folder name, and the dll name.

It must be unique, so please verify that it will not conflict with existing VoxCommando plugin and dll file names.

2. Create an empty folder within your C:\VCROOT\Plugins folder with the same name as your assembly (i.e. your plugin name).

A plugin folder in VoxCommando should ordinarily contain just 3 files*:

  • actions.xml (see other plugins for examples)
  • icon.png (your icon should be 45x45 pixels)
  • yourpluginname.dll

The file options.xml should only be created when the user first clicks "Save Options" and any default values you want to use should normally be set in your code.

*Unless you need to reference additional dlls. First check whether the dll you need to reference is already being used in VC. If so, verify that you are using the same version of that dll, and make sure that "copy local" is set to false so that you are not creating a duplicate copy of that dll when you build.

3. In Visual Studio, name your plugin assembly.  Project --> "Application" -->Assembly name is currently "Blank". Change it to name of your plugin.

4. Under Project Properties, set your target framework to .Net 4.5.1. (in the latest template just above, it should be set already to 4.5.1, but double-check.)

Under Post Build, event command line should read:

Code: [Select]
XCOPY "$(TargetDir)*.dll" "C:\VCROOT\plugins\$(TargetName)\" /Y /S
In other words, remove the "REM", which turns that line into a remark, and also edit the line to point to your existing VCROOT path.

5. In your C:\VCROOT folder, the PluginInterface.dll already exists. In Visual Studio, you should make a reference to this dll file. Then right-click that reference and make sure "Copy Local" is set to false. We do not want an extra copy of the same PluginInterface.dll ending up in your plugin folder when you build the project.
« Last Edit: April 02, 2016, 10:33:03 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

DexDeadly

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
    • View Profile
Re: Custom Plugin Design
« Reply #38 on: April 03, 2016, 01:28:54 PM »
Hello  Nime5ter. 

Thanks for the run down.  Thats very helpful.  I have download the 2016 Plugin blank which loads up in the SharpDevelop.  I have already started naming things and working on figuring out how exactly I'll need to do this.  It has been a very long time since I've touched C# :).  However I'm sure I can pick it right up.  I'm expecting this to be a challenge, but in a good way.  Again I appreciate those notes.