Task Runtime Information

This sample task will identify some important task-related information that can be captured during runtime. The information will be illustrated within three separate Dialog Boxes. This task uses a number of AutoMate Extended Functions which is referenced along with the specified task information.

The first Message Box will show the following:

1. Task Name %GetTaskName()%
2. Unique Task ID Number %TaskId()%
3. Task Directory Location %GetTasksDirectory()%
4. Task Current Line Number %GetCurrentLineNumber()%

The second Message Box will show the total execution time of the last step in:

1. Milliseconds % GetLastStepExecutionTimeMS()%
2. Seconds % GetLastStepExecutionTimeSec()%
3. Minutes % GetLastStepExecutionTimeMin()%

The last Message Box will show the total execution time of the task in:

1. Milliseconds %GetTaskExecutionTimeMS()%
2. Seconds %GetTaskExecutionTimeSec()%
3. Minutes %GetTaskExecutionTimeMin()%

Note: More information regarding Functions can be found in the AutoMate Help Doc in the 'Contents' tab under AutoMate' -> 'Reference' -> 'BASIC Scripting'

Download It Here