PDA

View Full Version : LSED Macros



GregMalick
10-05-2004, 03:50 PM
Here's a quote from the 2.6 Release notes:


The LSIDE Editor is the first client to use the new Embedded LScript mechanism of LCore.
A new option under the "Tools" menu called "Macro..."
provides an interface to the management system of the Editor macros.
Selecting this menu entry opens a window that can be used to manage Editor macros.
Macro files have the file extension "els".I searched through my directories to find the .els examples they discuss:


Name Type Description
-------------------------------------------------------------
autosave.els filter saves the current document after a specified
number of keystrokes
a_to_A.els filter uses the replaceKey() function to capatilize
all typed lower-case 'a' characters
cf_template.els run-once simple script that creates a new document and
places a Channel Filter template into it
changecase.els run-once alters the case of the charactersin the document. adheres to any current selection. employs the LScript requester mechanism.
color_e.els run-once changes the color of all the 'e' or 'E' characters on the current line disablecode.els run-once places a single-line comment operator (//) at
the start of every line in the current selection
enablecode.els run-once removes any single-line comment operators from
the start of every line in the selection
keycomplete.els filter completes the keyword from a partial entry when the tab key is pressed
reformat.els run-once re-formats a script to make it more readable
smartindent.els filter automates code-based indentation in a smart fashion
sort.els run-once sorts selected document lines in ascending order
This actually look kinda interesting. Was this just a tease or just functionality that works so bad nobody talks about it.
There's actually a function called toggleCollapse() that looks very interesting.

Who knows anything about this?

noiseboy
10-05-2004, 04:20 PM
Here's a quote from the 2.6 Release notes:


The LSIDE Editor is the first client to use the new Embedded LScript mechanism of LCore.
A new option under the "Tools" menu called "Macro..."
provides an interface to the management system of the Editor macros.
Selecting this menu entry opens a window that can be used to manage Editor macros.
Macro files have the file extension "els".I searched through my directories to find the .els examples they discuss:

[CODE]
Who knows anything about this?

I couldnt tell you because every time I select this menu option it crashes LSed on Mac os x LW8.01

Exper
10-07-2004, 09:42 AM
Where did you find that ".els" files? :confused:

GregMalick
10-07-2004, 10:42 AM
I searched all the LW directories but couldn't find them. But the examples are mentioned in the LScript 2.6 docs. I wanted to take a look but it's not possible. Was this just a tease?

Exper
10-08-2004, 04:09 AM
LScript seriously lacks a proper (well rounded) distribution; this is really sad cos it should be a great resource.

Hoping H2MW will fast reorganize and complete LScript material including all the stuffs needed to develop using such a useful feature!

masterchief
10-12-2004, 12:04 PM
greg,

where in the docs did you find reference to 'els' files????

GregMalick
10-12-2004, 10:03 PM
In the LScript v2.6 Release Notes. Not sure where Newtek keeps them anymore so I attached a zip (no images though).

masterchief
10-13-2004, 06:26 AM
The release notes are part of the LW SDK. The LSIDE directory is supposed to contain all of the listed macros.

SDK->docs->lscript->LSIDE\ macros are supposed to be here.... LSIDE directory has been omitted for some reason??????

Right click on the macro filename and open in window... it tells you where it is supposed to be located on your system

regards,
William

GregMalick
10-13-2004, 10:03 AM
You are correct, my "untextured" friend. That directory cannot be found.
It is just a tease, I guess.

masterchief
10-13-2004, 10:39 AM
I would like to be able to create my own LSED editor macros... totally separate avenue to pursue. I have been using an editor since early 80's that I maintained my computer BBS. Used to be called QEdit, now known as The Semware Editor (TSE).
Fully customizable, multiple window capability, has its own script language. Diehard programmers have been supporting it for many years. Sammy Mitchell the creator has been looking to find a niche where TSE can survive the competition. Check it out.... semware.com

Hint: NewTek ought to get Sammy Mitchell to develop/enhance LSED. You will not be sorry. IMHO :)

regards,
William

masterchief
10-14-2004, 06:46 AM
Lets remain alert to the fact there are two different editors for LScript

LScript Interface Designer (LSIDE)
LScript Editor (LSED)

No docs whatsoever for LSED.

masterchief
11-28-2005, 09:11 AM
save following text as SaveCurrentDocument.els

-- begin source --
@name Save Current Document

macro
{
saveDoc(currentDoc());
}
-- end source

Click Tools->Macros->Add
find saved macro file and click on it.
highlight added macro and select function key of choice
click done

you now have hotkey to save current document. this macro only works is you already have document opened.

regards,
William

GregMalick
11-28-2005, 10:23 AM
Aloha,

I'd say that NT has abandoned this area of development.
A year and several point releases later, the samples still haven't shown up.
H2MW dropped from the LW9 team. Nothing new in docs.

I'd say it's languishing. :screwy:



so.... how's Chicago in November? :D

masterchief
11-28-2005, 11:38 AM
its 56degf, no snow... NW Indiana gets all of our lake effect snow

I have several editors that I use...

TSE (The Semware Editor) I have been using since my PCBoard BBS days...
you know... before there was a world wide web. all you had was ANSI or text for graphics. LOL

if they will not/cannot develop/maintain the lsed, then create a hook in the hub where we can use text editor of preference. IMHO... :)

regards,
William

GregMalick
11-28-2005, 12:31 PM
just an aside...
I was using the debug() statement and noticed that "sometimes" LSED actually tracks along with the debug window.

Is this new to LW8.5 or was I just oblivious?

RedBull
11-28-2005, 03:56 PM
There is a lot incomplete on the Lscript side, notes and docs scattered everywhere....

Honestly Lscript died, after the LW-Outpost did, and Bob moved to work at NT
has head programmer, it's kind of sad that i have not seen Bob's name on the Lscript list, in years.... And i'm not sure what the HM2W guys did, but i didn't see much improvement.....

Bring back the days, where Bob pioneered Lscript, and was a driving force
behind LW development, and released seperate point releases for Lscript,
independently from LW releases.

Does anyone actually have any idea what LSTD.exe does?
Iv'e been trying to find out for ages....

It crashes, everytime i load a script into it.....

Anyone?

tischbein3
11-30-2005, 01:56 AM
Bring back the days, where Bob pioneered Lscript, and was a driving force
behind LW development, and released seperate point releases for Lscript,
independently from LW releases.

Does anyone actually have any idea what LSTD.exe does?
Iv'e been trying to find out for ages....

It crashes, everytime i load a script into it.....

Anyone?

Well we certainly see the negative "bob hoodian" impact on the manuals..... :D

Got less crashes with some layout general scripts... but I think its again time to ask NT-Europe....

And a look at the exe in notepad reveal that td means tree designer.

makes sense ? ... no

tischbein3
11-30-2005, 02:55 AM
AND AGAIN AN EDIT / CORRECTION
(But as stated before this thangs happen when you have lw installed not on the computer you are using for the net...)

Not asked yet but...
Getting TD to run without crash is easy, just make a modeler template save it run... don't ask me whats good for.

The name tree designer was more a guess, by a notepad readout of the lscript editor. (Although tree is correct)

lseditor is really deeper (or planed deeper) than it appears
(The internal command help system is a good example: in your script add a main variable:
var bla;
select var and press F1
)