OnInactive

<< Click to Display Table of Contents >>

 

OnInactive

OnInactive()

This event occurs while E3 Viewer is inactive and if the EnableInactivity property is set to True. It is triggered when determining that a user is not using E3 Viewer for a period of time equal or greater than the value of the InactivityTime property.

In a script for this event, users may program an action to perform when E3 Viewer is inactive for a certain period of time. For example, users can perform an E3 Viewer logout after 20 minutes without activity, as in the next example.

Sub Viewer_OnInactive()
  Logout(false)
  If MsgBox("This E3 Viewer section was closed
    due to inactivity.") = 0 Then
    Application.GetFrame("").OpenScreen "InitialScreen", 0
End Sub

Was this page useful?