Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

GetLastActivityTick Function

Overview

The GetLastActivityTick function returns the tick time since the last user activity.

Syntax/Parameters

Syntax

qword = GetLastActivityTick ( [int mode] );

Parameters

mode

An optional int specifying which activity time to inspect. The default value is GLAT_ANY_ACTION.

Return Value

Returns a qword containing the last activities time in milliseconds. A zero value means the activity has not been engaged by the user since application startup.

Remarks

As certain activities are processed by the application, the system tick count is stored when the action occurs. The GetLastActivityTick reads the activity and returns the value.

The modes are as follows:

  SDK Name   Description  
  GLAT_ANY_ACTION   Latest of any action.  
  GLAT_MOUSE_CLICK   Last mouse down click (within the application) of either left or right buttons. Drag does not count except for the initial mouse button down, if initiated in the application.  
  GLAT_KEYBOARD   Any non-system key down or character action.  
  GLAT_EDIT_ACTION   Any action that results in an actual edit change to a file (view).  
  GLAT_DIALOG_ACTION   Any control commands or notifications including receiving or losing focus such as from tabbing through controls.  

 

If the user has not engaged in a class of activity since the time the application started, the return value will be zero. For example, if a dialog has not been opened, the return value for GLAT_DIALOG_ACTION will be zero.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic