# Main STMod Window

<figure><img src="/files/LFzuePM3tdmYXI5MrctQ" alt=""><figcaption></figcaption></figure>

#### &#x20;

{% hint style="success" %}

#### Autologin

{% endhint %}

<div align="left"><figure><img src="/files/bsAq3EhiUlRgBEDzSR8O" alt=""><figcaption><p><strong><code>Check the 'Autologin' box to display all menu</code></strong><br><br><strong><code>At user, type your in-game Metin2 username</code></strong><br><strong><code>At pass, type your in-game Metin2 password</code></strong><br><strong><code>Check 'Pin' box if you need PIN to login and type your PIN in the text field</code></strong><br><strong><code>If you must set the focus to some specific location, check 'Click #1' box (if no X;Y mouse location recorded yet, you'll be prompted with a to move the mouse in the desired location and press on F9)</code></strong><br><strong><code>Same logic applies to 'Click #2'</code></strong><br><strong><code>In some servers, you will need to press Enter in order to perform login process, if needed, then check 'Enter' box.</code></strong><br><strong><code>Don't type manually user/password -> STMod will interract with game's login window and will login with provided user/pass.</code></strong><br><strong><code>Char number -> which character to select (counting starts from 0)</code></strong></p></figcaption></figure></div>

<figure><img src="/files/fjrHGzc74kSML1f0ICYZ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/a6L7Pi59CSTnfs6lfNfD" alt=""><figcaption></figcaption></figure>

####

{% hint style="success" %}
**Restart client**

**-> The bot will auto restart the client if it crashed**\
**(Additionally, STMod is now checking if the Metin2 window got a Runtime error, if yes, it will restart that client, even if when runtime errors occurs, the window isn't crashed)**
{% endhint %}


---

# 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://wiki.stmod.net/stmod-pservers/main-stmod-window.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.
