Script triggers reference
You can set up a script trigger to specify that a script runs when an event occurs. Click the links for the topics in this section to see a description of each script trigger.
Related topics 
Setting script triggers for layouts
Setting script triggers for objects
Setting file options
Topics in this section
OnObjectEnter
OnObjectKeystroke
OnObjectModify
OnObjectValidate
OnObjectSave
OnObjectExit
OnTabSwitch
OnRecordLoad
OnRecordCommit
OnRecordRevert
OnLayoutKeystroke
OnLayoutEnter
OnLayoutExit
OnModeEnter
OnModeExit
OnViewChange
OnFirstWindowOpen
OnLastWindowClose
OnWindowOpen
OnWindowClose