Metro: Last Light Redux Guide

Windowed Mode Center / Movable for Metro: Last Light Redux

Windowed Mode Center / Movable

Overview

Short AutoHotKey script that you run before the game. Centers the game when in windowed mode.

Initial Work / Information

Program Needed: AutoHotKey[ahkscript.org]

Important: Make sure that AutoHotKey is set to run as Administrator!

  1. Go to “C:Program FilesAutoHotkey”
  2. Right click on AutoHotkey.exe and select ‘Properties’
  3. Select the tab ‘Compatability’
  4. Check the box ‘Run this program as an administrator’

Location of Configuration Fire: %LOCALAPPDATA%4A GamesMetro LL<user-id>user.cfg

The game has to be in windowed mode for this to work.

  1. Open user.cfg with notepad or a similar program.
  2. Edit > Find > r_fullscreen
  3. Change “r_fullscreen on” to “r_fullscreen off”

Script

Time to create the script.

After installing AutoHotKey navigate to where you want to save the script. (C:Program FilesAutoHotkeyScripts is the default location, but the desktop is fine.)

  1. Right click on the Desktop and hover over ‘New’ and then select ‘AutoHotKey Script’
  2. Name it ‘MetroMove’
  3. Right click on it and select ‘Edit Script’
  4. Delete all the text in the file
  5. Copy & Paste the below script and then save

;===== Start Copy =====
WinWait, Metro, ,

StartY = 1

While (StartY > 0){
WinGetPos, StartX, StartY, , , Metro
if (StartY = NULL){
StartY = 1
}
}

WinGetPos, StartX, StartY, Width, Height, Metro
WinMove,Metro,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)

ExitApp

;===== End Copy =====

Important: You must run the script before running Metro: Last Light

You will know if the script is running because it will show in the bottom right of the taskbar as a small green square with an H on it.

After the script runs it will shut itself off. If you exit your game you will have to run the script again before starting up Metro: Last Light.

How it Works

The script works as follows:

  1. Wait until the game is running then continue on with the script
  2. Wait until the game window decides to shove itself up and into the corner
  3. Center the game window
  4. Close the script

Final Notes

The script is just looking for a window with the title bar having ‘Metro’ in it so it probably would work for the first metro game, but it may nab another window that has the word ‘Metro’ in it :D!

It works well enough so I’m quite happy with it.

Why the guide: A lot of searching and frustration. I like autohotkey and wanted to make a quick script to try and solve this issue.

Useful Website: Pc Gaming Wiki – Metro: Last Light Page[pcgamingwiki.com]

SteamSolo.com