This function returns a reference to an event with the given name. The returned object can be used to access properties of the event.
If multiple events have the same name, the wrong event may be returned.
Parameter: event
name
Type: string
Description: This is the name of the event.
Return value: event
reference
Type: object as EventClass
dim ev
set ev = hs.GetEventEx("night event")
msgbox "The event type is: " & cstr(ev.ev_abs_time)