# 🪟 Windows Activities

> **Parent page:** PAW Robot/Studio › Activities **Module:** PAWRobot.Windows **Scope:** Windows desktop applications — UI Automation, keyboard/mouse, OCR


---

## Overview

The Windows module automates desktop applications (Win32, WPF, UWP) through UI Automation. It provides keyboard/mouse simulation and OCR-based reading.


---

## Prerequisites

- [ ] Windows 10/11 or Windows Server
- [ ] Target application able to run in the same session


---

## Application and Window Management

| Activity | Input | Output | Description |
|----------|-------|--------|-------------|
| [**Open Application**](/doc/open-application-NuAdFz4OEa) | File Path, Arguments | —      | Starts an application |
| [**Close Window**](/doc/close-window-JlENKGmwHl) | Element/Selector | —      | Closes a window |
| [**Kill Application**](/doc/kill-application-tgxPSUdgJP) | Process Name, All Users, Process Id | —      | Terminates the process |
| [**Get Processes**](/doc/get-processes-qnpiHfSCd3) |       | Results | Lists running processes |


---

## Element Operations

| Activity | Input | Output | Description |
|----------|-------|--------|-------------|
| [**Get Element**](/doc/get-element-7TneWSD2YQ) | Selector, Timeout | Element | Finds a UI element |
| [**Element Exists**](/doc/element-exists-GSeVi1Y606) | Selector, Timeout | Element Exists, Element | Existence check |
| [**Wait Element To Disappear**](/doc/wait-element-to-disappear-3vWA6NoXwi) | Selector, Timeout, Element | Disappeared | Waits for the element to disappear |

Core activities (Click Element, Type Into, Get Element Value With Ocr, etc.) are used with the Windows Element reference.


---

## Example Scenario: Opening a Desktop Application


1. **Open Application**→ `C:\App\ERP.exe`
2. **Get Element**→ Main window Selector
3. **Click Element**→ Menu item
4. **Type Into**→ Data entry into a form field


---

## Module-Specific Notes

> 💡 **Tip:** If the application opens slowly, increase the **Timeout** value of the **Get Element** activity.

> 💡 **Tip:** In scenarios that require OCR, use the **Get Element Value With Ocr** activity.


---