---
name: "ctrlAt"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "2.12"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlAt
revid: 338355
updated: 2023-03-01T00:25:09Z
---

# ctrlAt

*Command · GUI Control · Arma 3 v2.12*

## Description

Returns the control at the specified coordinates.

## Syntax

```sqf
display ctrlAt [x, y]
```

**Parameters:**

- `display`: [Display](../topics/Display.md) - the display to check
- `x`: [Number](../topics/Number.md) - position (0 = left, 1 = right)
- `y`: [Number](../topics/Number.md) - position (0 = top, 1 = bottom)

**Returns:** [Control](../topics/Control.md) - the control at the specified coordinates, [controlNull](../commands/controlNull.md) if none

## Examples

### Example 1

```sqf
private _ctrl = _myDisplay ctrlAt [0.5, 0.5];
```

## See also

[ctrlCreate](../commands/ctrlCreate.md) · [ctrlSetPosition](../commands/ctrlSetPosition.md) · [ctrlCommit](../commands/ctrlCommit.md)

<sub>Source: [BI Community Wiki — ctrlAt](https://community.bistudio.com/wiki/ctrlAt) (revision 338355).</sub>
