index of namespace default
 
 index of project core
 
 index of module core

Class core.Script


SynopsisRepresents a dynamically loaded/compiled script.

  Base classes:
  Methods:
See also:  



Method eval
Run script statements
Signature
eval()

 
 top of page
Method findFunction
Signature
findFunction(Stringname)
 :Function
Arguments
Stringname
Returns

 
 top of page
Method findTaggedVariableByIndex
Signature
findTaggedVariableByIndex(intindex)
 :Variable
Arguments
intindex
Returns

 
 top of page
Method findVariable
Signature
findVariable(Stringname)
 :Variable
Arguments
Stringname
Returns

 
 top of page
Method getLastErrorLineIndex
Signature
getLastErrorLineIndex():int
Returns
int

 
 top of page
Method getPrintHookOutputAndClear
Return a copy of the current trace / print / stdout / stderr capture buffer and clear the buffer.
Signature
getPrintHookOutputAndClear():String
Returns
String

 
 top of page
Method installPrintHook
Install trace / print / stdout / stderr hook and capture output to string buffer.
Signature
installPrintHook()

 
 top of page
Method load
Signature
load(Stringscript)
 :boolean
Arguments
Stringscript
Returns
boolean

 
 top of page
Method setClassNamespace
Set namespace name for classes declared in this (temporary) script module.
Signature
setClassNamespace(StringnspName)
Arguments
StringnspNameUnique namespace name
Description

(note) a unique namespace must be set in case the script source is loaded in multiple Script instances

 
 top of page
Method setLineOffset
Skip line numbers, e.g. after adding implicit header lines to script source.
Signature
setLineOffset(int)
Arguments
int

 
 top of page
Method uninstallPrintHook
Uninstall trace / print / stdout / stderr hook.
Signature
uninstallPrintHook()

 
 top of page
Method unload
Signature
unload()

 
 top of page
 

Project Modules:core 
Project Classes:Boolean , Buffer , Byte , Class , ClassArray , Condition , Configuration , Double , DummyStream , Envelope , Event , Exception , File , Float , FloatArray , FloatArray128 , FloatArray16 , FloatArray32 , FloatArray64 , FloatArray8 , Function , HashTable , IntArray , IntArray128 , IntArray16 , IntArray32 , IntArray64 , IntArray8 , Integer , LFSR , LFSR_NR , List , ListNode , Long , Mailbox , Mutex , Object , ObjectArray , PakFile , PointerArray , Pool , Process , Script , SharedBuffer , Short , Stack , StdErrStream , StdInStream , StdOutStream , Stream , String , String128 , String16 , String32 , String64 , String8 , StringArray , StringIterator , Thread , Time , TKS , TreeNode , UnsignedByte , UnsignedInteger , UnsignedLong , UnsignedShort , Value , ValueArray , Variable 
Project Functions:ceil , exit , floor , GetCurrentThread , getenv , lcchar , mathAbsMaxf , mathAbsMinf , mathAbsMini , mathAbsMini , mathCerpf , mathClampf , mathClampi , mathDistancePointPlane2d , mathFoldf , mathFoldi , mathGCD , mathLerpCyclicf , mathLerpf , mathMaxf , mathMaxi , mathMinf , mathMini , mathNextCyclicf , mathPowerf , mathPowerfC , mathPoweri , mathSerpf , mathSmoothStepf , mathSmoothStepNf , mathWrapf , mathWrapi , milliSeconds , milliSecondsDouble , psystem , putenv , srand , system , ucchar 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59