well, easiest is to insert the code found in there into your script file somewhere.

then you can use the code shown above.

the code from the site is "function definition" which tells kixtart what "function primapstate" is.

once it's in your script-file, you can use it as any other kixtart function.
_________________________
!

download KiXnet