> ## 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.

# On Task Window Create

> Run a script when a FlexiCapture task window is created using the On Task Window Create event, which passes the new window as an ITaskWindow object.

## When it is launched

The script is launched upon creating a task window.

## Parameters

| **Name** | **Type**                                                         | **Access** | **Description** |
| -------- | ---------------------------------------------------------------- | ---------- | --------------- |
| Context  | [ITaskWindow](/flexi-capture/appendix/scripts-shell/itaskwindow) | Read/write | The task window |
