wintin Forum Index wintin
Wintin Discussion Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AddIns in Wintin.Net 3.03

 
Post new topic   Reply to topic    wintin Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Normstorm
Veteran


Joined: 29 Jun 2005
Posts: 28

PostPosted: Thu May 17, 2012 10:46 pm    Post subject: AddIns in Wintin.Net 3.03 Reply with quote

Has anyone been able to get an AddIn working in the latest 3.03 beta?

I've compiled the simple AddinTest example and Wintin loads ok, but doesn't really do anything when I issue the command #addintest. I compiled the class file in Visual Studio 2010 with .Net Framework 3.5 as the project's target framework.

Below is the AddinTest.Class1.cs.

Code:
using System;
using ScriptEngine;
using ICSharpCode.Core.Services;

namespace AddinTest
{
   public class Class1 : ICommand
   {
      public Class1() {}

      #region ICommand Members

    public void ProcessCommand(string verb, string args)
    {
      Interpreter interpreter = (Interpreter)ServiceManager.Services.GetService(typeof(Interpreter));
      interpreter.Display("\r\nCommand " + verb + " called with 2 arguments " + args + "\r\n");
      interpreter.Interpret("#showme {** Two arg ProcessCommand()}", false);
    }

    public void ProcessCommand(string verb, string args, string args3)
    {
      Interpreter interpreter = (Interpreter)ServiceManager.Services.GetService(typeof(Interpreter));
      interpreter.Display("\r\nCommand " + verb + " called with 3 arguments " + args + "\r\n");
      interpreter.Interpret("#showme {** Three arg ProcessCommand()}", false);
    }
      #endregion

   }
}


The AddinTest.addin file is super stripped down with just one extension with a command id of addintest. No Services or Menu handlers defined.

_________________
mud.arctic.org:2700
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    wintin Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group