Sign in to follow this  
Rick Brewster

Ability to Create Macros

Recommended Posts

Let me also state that it's something we agree that would be awesome to have. However, there is a lot of plumbing and design and work that goes in to enabling something like this.

Share this post


Link to post
Share on other sites
Let me also state that it's something we agree that would be awesome to have. However, there is a lot of plumbing and design and work that goes in to enabling something like this.

May I recommend dropping in an Interop file for Microsoft Script Control, which I believe comes standard with Windows XP and 2003? You can pass in C# objects and the CLR will automatically generate CCWs for ActiveScript (JavaScript / VBScript). I've done this before, it's a pretty simple task, but it does limit you to working with value type object properties and simple methods as the CCWs produced are pretty basic. In other words, you can work with C# objects (Set myLayer = Application.Layers.Item(2)) and pass them around (Application.Layers.Add(myLayer)), but you cannot work with their properties beyond value type variables (MyTextBox.Text = "Hello World"). In other words, you cannot, for instance, use VBScript to instantiate a new System.Xml.XmlDocument object and work with its NodeLists, etc.

Perhaps you've looked further into this for Paint.NET specifically and I'm being a little simplistic.

Jon

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this