Posts Tagged ‘scripting’

Scripting Engine Unit Template

Thursday, April 10th, 2008

I must say, Delphi Live Templates and the Scripting Engines are REALLY amazing.  I wanted to make a new scripting engine, but then I got to thinking that my scripting engines had a lot of similar code, so I figured I would make a Live Template to create Scripting Engines.  I based it on Nick’s BaseScriptingEngine from his article on Creating a Live Templates Scripting Engine.

I then created a Template Project for the Scripting Engine Package.  So I can pop out a scripting engine now faster then you can say “Delphi Rocks”.

I thought I would share my Scripting Engine Unit Template.  You will probably want to make your own Scripting Engine Package Template Project, but if there is enough interest I will share mine out.  You will most likely want to modify this template to suite your own framework.

[Scripting Engine Unit Template]

Note: This references my general scripting engine to create a new GUID.  You will need to do that manually until I dress up my general scripting engine for public consumption.

Delphi Random Class Namer

Wednesday, April 9th, 2008

Ever wonder what class to write next in Delphi?  Well, combine Delphi Live Templates (including a custom scripting engine) with www.ClassNamer.com and you never have to wonder again.

Although how to implement that class is another question.

If there is any interest in the code let me know and I will polish it up and post it.  I created a random HTTP parser script engine and then the live template does the rest.  I figured this would be a fun way to get familiar with Live Templates and the custom scripting engine.  This is a really powerful feature of Delphi.