> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Event handlers

> Index of program shell events that FlexiCapture scripts can handle, from On Activate Document and On Task Close to On User Command and region events.

The following program shell events can be handled by scripts:

[On Activate Document](/flexi-capture/appendix/scripts-shell/document-activate)

[On Closing Document](/flexi-capture/appendix/scripts-shell/document-close)

[On Closing Project](/flexi-capture/appendix/scripts-shell/project-close)

[On Document Closed](/flexi-capture/appendix/scripts-shell/after-confirmation)

[On Field Control Activate](/flexi-capture/appendix/scripts-shell/field-activation)

[On Field Control Deactivate](/flexi-capture/appendix/scripts-shell/field-deactivation)

[On Open Document](/flexi-capture/appendix/scripts-shell/document-open)

[On Project Closed](/flexi-capture/appendix/scripts-shell/after-inquiry)

[On Region Change](/flexi-capture/appendix/scripts-shell/region-modify)

[On Region Control Draw](/flexi-capture/appendix/scripts-shell/region-draw)

[On Return From Task](/flexi-capture/appendix/scripts-shell/task-return)

[On Task Close](/flexi-capture/appendix/scripts-shell/task-close)

[On Task Reject](/flexi-capture/appendix/scripts-shell/task-reject)

[On Task Send To Stage](/flexi-capture/appendix/scripts-shell/task-send)

[On Task Window Create](/flexi-capture/appendix/scripts-shell/taskwindow-create)

[On Task Window Mode Changed](/flexi-capture/appendix/scripts-shell/taskwindow-change)

[On Text Field Validating](/flexi-capture/appendix/scripts-shell/save-value)

[On User Command](/flexi-capture/appendix/scripts-shell/user-command)
