This function marks an event as disabled. All triggers are suspended until the event is re-enabled.
Type: long (.NET Integer)
Description: This is the event reference ID of the event to be disabled.
sub main() dim eref eref = hs.GetEventRefByName("My Event") hs.DisableEventByRef eref end sub