ResEnforce is a rewrite of Resolution Enforcer but in Nim instead of Python.
A simple program to enforce desktop resolutions on specific applications. (Win32 and UWP apps.)
This program fundamentally allows you to force an application to run at a specific resolution of your choice.
Additionally, Resolution Enforcer will minimize your game when you switch windows or [Alt]
+ [Tab]
.
Useful for UWP/Fullscreen Borderless Games since those don't support the ability to use lower resolutions.
-
Grab the latest release from GitHub Releases.
-
Run
ResEnforce.exe
. -
This will generate a
Options.ini
file. -
Open the file and it should look like this:
[Profiles] ; Title or Executable Name = Resolution ; Example.exe = 1600x900 ; Example = 1280x720
-
Adding a new profile is easy:
Note: Executable and title names are case sensitive!-
For Win32 Applications:
App.exe = A x B
Where,App.exe
is the name of the executable andA x B
is the resolution to be used.
Example:HaloInfinite.exe = 1600x900
-
For UWP Apps:
App Title = A x B
Where,App Title
is the name of the UWP App andA x B
is the resolution to be used.
Example:Minecraft = 1280x720
-
-
You end up with:
[Profiles] ; Title or Executable Name = Resolution ; Example.exe = 1600x900 ; Example = 1280x720 Minecraft = 1280x720 HaloInfinite.exe = 1600x900
-
Simply save the file!
There are 2 ways to close Resolution Enforcer ResEnforce.exe
:
-
Download the source code.
# You can easily grab them via Scoop. scoop.cmd install upx
You can install the Nim Compiler from:
Once Nim is installed on your system, fetch
winim
(Nim's Windows API and COM Library).Note: Make sure
Git
is installed!nimble install winim
-
Run in PowerShell:
# Compile ResEnforce. nim -d:release --app:gui -o:ResEnforce.exe c src/main.nim # Compress the compiled executable. upx -9 ResEnforce.exe