AuthorTopic: ASL Editor [version 3.5 is out!] (Read 32192 times)

I don't know what program do other people use to write ASL scripts... I used to use Notepad and an unstable version of Tyson Collins' Anim8or Script Editor (which never even reached the beta stage...). That's not a very comfortable way of programming :/. That's why I decided to write a little development tool for ASL scripts.

Version 2.0 is out! ASL Editor is becoming more than a simple text editor. See the first post in this topic to download the program.

The most important feature in this version is full Auto-Complete function. The XML file that was used to recognize keywords now contains a complete ASL specification (even "more complete" that the official online specification, which is a little outdated...).

There are also several bugs fixed and a bunch of new minor features... Be sure to check it out and don't forget to read the ReadMe file to get the most out of the program!

(one side point. i apologize in advance since this doesn't really have to do with anim8or but i was wondering since i'm learning C# and i was trying to figure out how to program your intellisense feature. so if you caould give some direction i would ge much obliged.)

thanks in advance

Logged

there are two things that are contstant. human stupitity and matter. and i'm not to sure about the second one.-Albert Einstien

(one side point. i apologize in advance since this doesn't really have to do with anim8or but i was wondering since i'm learning C# and i was trying to figure out how to program your intellisense feature. so if you caould give some direction i would ge much obliged.)

thanks in advance

Sure, here's a (very) short summary of what I've done:

I created a new windows form that would represent the Auto-Complete list (and the only control inside this window is the list itself).

Then I had to track the "OnKeyPress" and "OnKeyDown" events of the text box to show/hide the auto-complete window and I also had to check for mouse events in the auto-complete box itself... There was a lot of other things I had to do, for example to search the code for variable declarations to maintain a list of all variables, to close the auto-complete window when the textbox loses focus, to fill the list with appropriate content... The piece of code is about 600 lines long.

If you want a more detailed explanation, send me a pm or an e-mail, I don't mind sharing a part of my secrets

ps. Right now I'm working on a "Syntax checker" - this function will try to parse your script and check it for errors so you don't have to save the file, start Anim8or and load the script to find out that there's a semicolon missing...

A little question, why does it need .NET Framework 3.5? Or .NET Framework at all?

Huh.. That's a difficult question

There are at least 2 good reasons why I'm developing this application using .NET. First, the C# language is closely related to the .NET platform and as far as I know it's not possible to write a C# application that does not need .NET (and if you want to ask why I'm using C#, it's because I don't know any other programming language ).

The second reason is quite simple: the .NET platform makes some things extremely easy (from developer's point of view).

I tried to make the application compatible with earlier versions of .NET, but (un)fortunately .NET 3.5 introduced several amazing features I can't live without...

I know this is quite a big problem problem because not everybody has .NET 3.5 installed, but you can download it for free from microsoft.com (as far as I know it' about 250 MB ).