Git Product home page Git Product logo

resenforce's Introduction

ResEnforce

ResEnforce is a rewrite of Resolution Enforcer but in Nim instead of Python.

What is Resolution Enforcer?

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.

Usage

  1. Grab the latest release from GitHub Releases.

  2. Run ResEnforce.exe.

  3. This will generate a Options.ini file.

  4. Open the file and it should look like this:

    [Profiles]
    ; Title or Executable Name = Resolution
    ; Example.exe = 1600x900
    ; Example = 1280x720 
  5. Adding a new profile is easy:
    Note: Executable and title names are case sensitive!

    1. For Win32 Applications: App.exe = A x B
      Where, App.exe is the name of the executable and A x B is the resolution to be used.
      Example: HaloInfinite.exe = 1600x900

    2. For UWP Apps: App Title = A x B
      Where, App Title is the name of the UWP App and A x B is the resolution to be used.
      Example: Minecraft = 1280x720

  6. You end up with:

    [Profiles]
    ; Title or Executable Name = Resolution
    ; Example.exe = 1600x900
    ; Example = 1280x720 
    Minecraft = 1280x720
    HaloInfinite.exe = 1600x900
  7. Simply save the file!

How to close Resolution Enforcer?

There are 2 ways to close Resolution Enforcer ResEnforce.exe:

  1. In CMD or PowerShell run:

    taskkill /im ResEnforce.exe /f
  2. Through Task Manager:

    image

Building

  1. Download the source code.

    # You can easily grab them via Scoop.
    scoop.cmd install upx

    You can install the Nim Compiler from:

    https://github.com/dom96/choosenim

    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
  2. 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

resenforce's People

Contributors

aetopia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

huydgd

resenforce's Issues

windowed mode

please make it so when you tab out it doesn't minimize the window like it's in Fullscreen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.