To find a starting point for scripting, I think it is a good idea to use the
macro recorder. Then you can learn much from what TS is doing under
the surface. This is one side of the coin.
On the other side it is important to learn the programming language you
want to use. But now you encounter difficulties. To learn each side at the same time
can be very hard and frustrating.

If you first read in the TS doxygen
you will understand nearly nothing. No, I don't want to discourage you.
My suggestion:
Try this:
1. Become familiar with the scripted objects in the LE. Change the position
of textboxes, resize them, look into their properties, see how they are
connected to variables, or activities.
2. Look how attributes are made and changed, look what kind of types are possible.
Understand for what strings, numbers and ints are used.
3. Create 3 attributes (orange triangle). Two Inputs, one Output, all numbers
4. Create 3 Edit Controls assign them to your in and outs
5. Jump into your object (orange triangle) Look into the methods, you will find something like
this (VB script)
Code: Select all
' OnComputeOutputs
' Called to compute values of all output connectors
Sub OnComputeOutputs(params)
Dim EingangA, EingangB, Ausgang
EingangA = params.ConValue("EingangA")
EingangB = params.ConValue("EingangB")
' TODO: put your computation here
params.ConValue("Ausgang") = EingangA + EingangB
End Sub
Look what I have done: I take the numbers of input "EingangA" and input "EingangB" into
two variables EingangA and EingangB.
Then I add EingangA to EingangB and send the result to my output ("Ausgang")
I think this is one of the most easy programs.
Later you can check what happens if you change "+" to "&" or other functions.
Now, if you have any question ask.
