# Option to lock dimension of the game in windowed mode

**URL:** <https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499>\
**Category:** Feature Requests and Game feedback\
**Created:** [August 10, 2022, 7:49pm UTC](https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499 "2022-08-10T19:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azelicus](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Azelicus](https://community.gemsofwar.com/u/Azelicus)\
**Post date:** [August 10, 2022, 7:49pm UTC](https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499/1 "2022-08-10T19:49:03Z")

</div>

Hello,

I request the option to lock height and width of the game window when not playing full screen. I personally dislike the fact that a misclick while playing the game can result in the window being resized, especially since it does not keep the current aspect ratio.

Since the game is made with Unity, I know that option exist. Please make it available for us users.

Thanks.

---

<div class="post-metadata">

**Author:** ![sls](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/sls/32/66687_2.png) [@sls](https://community.gemsofwar.com/u/sls)\
**Post date:** [August 11, 2022, 10:40am UTC](https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499/2 "2022-08-11T10:40:53Z")

</div>

If you don’t mind [nircmd](http://www.nirsoft.net/utils/nircmd.html) or [autohotkey](https://www.autohotkey.com/), here’s two solutions:

nircmd:

`nircmd win -style title "GemsofWar" 0x00040000`

autohotkey:

```auto
#NoEnv
#SingleInstance force

WinWait, GemsofWar
WinSet Style, -0x00040000

```

`0x00C40000` If you also want to strip away the titlebar (don’t forget the minus in front for the autohotkey version).

If the game’s graphics appear blurry, you’ll have to double click the titlebar to force a resize event. If you stripped away the titlebar too, Win+down arrow followed by Win+up arrow will fix the graphics being skewed.

---

<div class="post-metadata">

**Author:** ![Azelicus](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Azelicus](https://community.gemsofwar.com/u/Azelicus)\
**Post date:** [August 11, 2022, 10:52am UTC](https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499/3 "2022-08-11T10:52:38Z")

</div>

> [@sls](#):
>
> nircmd

Thanks for those solutions.

The question is, does the dev team mind this use of nircmd or autohot key? The last thing I want is to get a ban straight from the auto-checker and lose a month of playtime (or lose the account, you can never tell in those situations if they will just decide to not bother checking if the ban was legit). My account is years old, I don’t want to risk.

So I really hope someone will add that option to the game (since it is an option in Unity) and not require me to use 3rd party programs and risk a ban…

---

<div class="post-metadata">

**Author:** ![sls](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/sls/32/66687_2.png) [@sls](https://community.gemsofwar.com/u/sls)\
**Post date:** [August 11, 2022, 11:15am UTC](https://community.gemsofwar.com/t/option-to-lock-dimension-of-the-game-in-windowed-mode/76499/4 "2022-08-11T11:15:38Z")

</div>

Understandable. I’ve been stripping away the titlebar for four years without anyone minding.

Here’s their zendesk link for what it’s worth: [Hacking in Gems of War](https://gemsofwar.zendesk.com/hc/en-us/articles/360000348076-Hacking-or-cheating-in-Gems-of-War)
