# Client

## get\_client()

This function returns information about the game client.

#### **Usage**

```
get_client()
```

#### **Returns**

`None` or a dictionary about the game client.

`window` - Window handle of the client

`pid` - Process ID of the client

`path` - Path to the client

`running` - State of the client. The process state is checked each time this function is called.

```
{
	'window': 859850,
	'pid': 18420,
	'path': 'C:/Users/...',
	'running': True
}
```

```
{
	'window': 0,
	'pid': 0,
	'path': '',
	'running': False
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://plugins.phbot.org/phbot-api/client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
