Scripting with the object interface

Scripting is an optional method for invoking the Web runtime. While it is possible to invoke the Web runtime without scripting, some users may want to take advantage of the methods and properties in the object interface.

The following VB Script example illustrates how to invoke the object by a push button event using a script:

<INPUT id=button1 name=button1 type=button value=Button>
sub button1_onclick()
   call AcuGTAX.src("http://www/")
   call AcuGTAX.AcuEmbedded(1)
   call AcuGTAX.AcuExecute()
end sub

Only one instance of the Web runtime is allowed. You cannot have multiple instances of the runtime in one browser instance.

To script runtime options, use the AcuOptions property. For example, to implement the configuration file and error file options with VB Script, you would use:

Sub window_onLoad()
  call AcuGTAX1.SRC("")
  call AcuGTAX1.AcuEmbedded(1)
  call AcuGTAX1.AcuOptions(" -c cblconfi –e error.txt")
  call AcuGTAX1.AcuExecute()
  end sub