> I was thinking along the lines of working with any registered
> ActiveScript, but have no idea how to go about doing this. I
> know Max wrote his own MaxBasic thing, but I fear thats beyond
> me :P
Its is a lot of work, and its still not done yet. Its amazing just how much
is packed into the VB language once you start doing your own implementation.
Stiil its does provide some real computer science fun now and then 8-)
> Does anyone know of any URLs for implemented the MS scripting
> components (I know they reek of security problems, but at the
> mo I'm keen on looking at various things.
Check out SaxBasic, a full Visual Basic clone that can be included into your
project. They have all the details at http://www.saxbasic.com/. We were
looking at using it, but finally decided that having our own source code
ment that we had more control over bug fixing, plus could make changes to
the VB language where we thought it was just too ugly (array accesses for
instance). On the other hand we don't have the SaxBasic editor with all the
funky hinting, and the way cool debugger.
> But, on the other side of scripting, I was wondering the best way of
> handling the recording of macros, and call back functions.
>
> I seem to recall when Max gave his demo, they had a line of code in each
> event that recording what was being done and any params needed or
> something? Mmmm, I go read web sites about it and eat lunch....
What we did was to add extra code into all our components so that the users
intention was added to the currently recording script. So if the user
evtered some text, this is the equivalent to setting a property that
represented the control on the form. And pushing a button is the equivalent
of making a method call on the object representing the form.
I must admit that this was more work in some ways that implementing the VBA
like scripting! Even with our heavy inheritance, own controls and freedom to
do whatever I liked to get this working, there are still bits and pieces
found that need script recording enabling, and there are some parts of the
recording that are just not right due to some internal design decisions.
But having the application scripted is a great sales benefit, and provides
users with a way to do things that would otherwise cause them great pain and
suffering, but which are not main stream enough to be worth adding into the
application in Delphi code.
Cheers, Max.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"