reference:scripting_reference:scripting_events:onperiodictimer

The OnPeriodicTimer event can be implemented by a script add-in to have Opus call your script at regular intervals. The DOpus.SetTimer method can be used to create timers, and your OnPeriodicTimer method will be called regularly for each timer you create.

Method Name: OnPeriodicTimer

Argument Type:

PeriodicTimerData 

Return Type:

none

Description:

The id property indicates which timer your method is being called for.