---
name: "isGameFocused"
type: command
status: ok
groups: ["System"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isGameFocused
revid: 309152
updated: 2022-05-03T14:13:47Z
---

# isGameFocused

*Command · System · Arma 3 v1.96*

## Description

Returns the state of game focus changed by pressing <kbd>ALT</kbd>+<kbd>TAB</kbd> or similar action.

## Syntax

```sqf
isGameFocused
```

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if game window is focused, [false](../commands/false.md) if not

## Examples

### Example 1

```sqf
if (!isGameFocused) then { endMission "End" };
```

## See also

[isGamePaused](../commands/isGamePaused.md)

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