12.4.21.1    LOGACT

Description:   Makes an entry in the Action Log with user defined text.

Syntax:

Tcl:              LOGACT {text string}

                   LOGACT @tag
LOGACT
$script_variable

 

JScript:         LOGACT("string");

                   LOGACT("@tag");
LOGACT(
script_variable);

 

VB Script:      LOGACT "string"

                   LOGACT "@tag"
LOGACT
script_variable

 

Argument:     text string

See Also:      <LOGACT>, LOGALM

Places Time Stamp, Date and Text string in the Action Log. Time and Date is when keymacro executed.

 

Examples:     

# tcl

LOGACT {The LogAct Tcl button was pressed}
 

// JScript

LOGACT("The LOGACT JScript button was pressed");

 

 

Rem VB Script

LOGACT "The LOGACT VB Script button was pressed"

 

# tcl

#records contents of TEXTAG1 to Action Log

LOGACT  @TEXTTAG1

# declares variable string1 to pass message

set string1 {The LOGACT tcl script ran to completion}

LOGACT $string1

 

// JScript

// records contents of TEXTAG1 to Action Log

LOGACT("@TEXTTAG1");

// declares variable string1 to pass message

var string1 = "The LOGACT JScript ran to completion";

LOGACT(string1);

 

Rem VB Script

LOGACT "@AC3_LABZAT1"

Rem declares variable string1 to pass message

Dim string1

string1 = "The LOGACT VB Script ran to completion"

LOGACT string1

Example Script:

 

# tcl Global Script to write change from user program to action log

# user program must update WriteActionLog to 1

# and user program enters text to be written in WriteText2ActionLog

# to get columns to align, use at least 22 spaces from tagname

 

if { [GETVAL WriteActionLog] == 1 } then {

LOGACT @WriteText2ActionLog

SETVAL WriteActionLog=0

}