How to force Maximized Fullscreen mode in any game?

Solution 1:

I have a simple AutoHotkey script that will force this mode for me. The script removes the window border and title bar of any window, and moves the window so that it fills the screen:

^!f::
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
    WinSet, Style, ^0xC00000 ; toggle title bar
    WinMove, , , 0, 0, 1920, 1080
}
return

The hotkey this creates is Control+Alt+f. It applies changes to whatever window has focus. If you wanted to use this script, all you'd need to do is:

  1. Install AutoHotkey
  2. Copy the script to a text file and name it something like MaxFull.ahk
  3. Right click on your new script and use Run as Administrator.
    SUDO Autohotkey script

Note that you'll need to have your game in windowed mode, set to your desktop's resolution. Also change "1920, 1080" to whatever your resolution is. Press the hotkey and bam! Maximized Fullscreen goodness. It even toggles back and forth if you press the hotkey again.

While the hotkey works on many games that I've played, some games are stubborn and don't want the window border removed. In that case, I have another hotkey that is a bit more forceful.

^!g::
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
   WinSet, Style, -0xC00000 ; hide title bar
   WinSet, Style, -0x800000 ; hide thin-line border
   WinSet, Style, -0x400000 ; hide dialog frame
   WinSet, Style, -0x40000 ; hide thickframe/sizebox
   WinMove, , , 0, 0, 1920, 1080
}   
return

Simply append this to the previous script to enable the hotkey Control+Alt+g.

Update: Some games also use a 0x40000 "ThickFrame" style, which the script wasn't removing until now. See the AutoHotkey documentation for a list of styles that can be removed.

Solution 2:

There's a very simple utility that I've used for ages to accomplish this very purpose. It was originally written for EVE Online, but it will support any game.

Gamers Window Relocator

When you install it, it looks like this:

enter image description here

You basically choose the game you're running, and it will automatically move the game to completely fill the window.

The advantage of this over the AHK method mentioned earlier applies mostly to users of multiple windows. It will automatically clamp to the nearest corner. So if you move the window to your second monitor, it will automatically fill your second monitor instead of your first. This way you don't need multiple scripts for every monitor.

It also works automatically, without any hotkey.