> ## 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 Mode Changed

> On Task Window Mode Changed fires when a user switches the FlexiCapture task window to a different view mode, passing the window as ITaskWindow.

## When it is launched

The script is launched when changing the view of the task window (when the user switches to a different view mode).

## Parameters

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