Skip to main content
Skip table of contents

GetLastEvent

Purpose

This function returns the name of the last event that was triggered.  This can be used in a script to detect which event the script was executed from.


Parameters

None


Returns

Return value: last event
Type: string


Example

Sample Code

VB
sub main()

	dim t

	t = hs.GetLastEvent

	msgbox "This script is run from the event: " & t

end sub


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.