fbpx

Events_OnEvery

Events_OnEvery

This will insert the correct method signature needed to hook or trap the event fired from an OmniPilot defined OnEvery event.  Double clicking this item will insert the following code.

Sub MyOnEvery()
    ‘ statements
End Sub

You can change the method name (MyOnEvery) to anything you like. To actually establish the hook you need to call OmniPilot.OnEvery(,,, AddressOf ).

Example
Sub OnStartup
     StartOT
     OmniPilot.OnEvery(1,0,0, AddressOf RunToDoList)
End Sub

Private Sub RunToDoList()
     ToDoList.Run()
End Sub

Also See
OmniPilot.OnEvery

>