Skip to content

Instantly share code, notes, and snippets.

View OneNot's full-sized avatar
🏢
Back to building a city...

Toni Hannula OneNot

🏢
Back to building a city...
  • Southern Finland University of Applied Sciences
  • Finland
  • 13:33 (UTC +03:00)
View GitHub Profile
@OneNot
OneNot / AutoLosslessScalingForUndetectedGames.ahk
Last active February 21, 2025 19:10
A simple script that will: launch Lossless Scaling, auto select a profile, optionally start the game, wait for the game to start, auto-activate scaling, and optionally wait for the game to close to then close LS as well.
#Requires AutoHotkey v2.0
;========== SETTINGS ==========;
; Replace with your LS exe filepath
losslessScalingExePath := "C:\Program Files (x86)\Steam\steamapps\common\Lossless Scaling\LosslessScaling.exe"
; replace with your game exe path OR set to empty string ("") if you do not want the script to start the game
gameExePath := "N:\GameLibraries\Steam\SteamLibrary\steamapps\common\Helldivers 2\bin\helldivers2.exe"
; put the window title of the game you want detected here. Uses regex. If you don't know what that means, just know that "^game name$" will find a window with exactly "game name" as it's window title, where as "game name" will find the first window with "game title" anywhere in it's title.