You are viewing a potentially older version of this package. View all versions.
DeathWrench-BorderlessFullScreen-0.0.9 icon

BorderlessFullScreen

Uses AutoHotkey.Interop to run an AutoHotkey script that fullscreens the game from windowed mode through BepInEx.

Date uploaded 5 months ago
Version 0.0.9
Download link DeathWrench-BorderlessFullScreen-0.0.9.zip
Downloads 218
Dependency string DeathWrench-BorderlessFullScreen-0.0.9

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Borderless Full Screen

  • Game must be set to windowed mode for this to work properly.

Uses AutoHotkey.Interop to execute the following AutoHotkey script into the game through BepInEx.

procName := "UnityWndClass"
WinGet Style, Style, % "ahk_class " procName
If (Style & 0xC40000)
{
WinSet, Style, -0xC40000, % "ahk_class " procName
WinMove, % "ahk_class " procName, , 0, 0, A_ScreenWidth + 1, A_ScreenHeight + 1
WinMove, % "ahk_class " procName, , 0, 0, A_ScreenWidth, A_ScreenHeight
}
Return

The benefit of using this is so DXVK can run... as it seems to crash the game for anything other than windowed mode.
.ahk script modified from:

CHANGELOG

2.0.1

  • Mostly github stuff, updated readme.

2.0.0

  • Removed Autohotkey.Interop dependency
  • Fix resolution problem once and for once and for all
  • Removed automatically setting the game to windowed mode, as a result. This now works for other Unity games as long as they can also utilize BepInEx

1.0.1

  • in 1.0.0 there was a chance to not work properly, so resolution is + 1 pixel taller and wider again.

1.0.0

  • Fix resolution problem once and for all.

0.0.9

  • Force the game into windowed mode if it's not.

0.0.8

  • Fixed mod icon.

0.0.7

  • Fix the resolution being slightly incorrect.

0.0.6

  • Used a different code from StackOverflow that should only mess up now if another Unity game is active. Whereas before it would sometimes mess up if another window that had Lethal Company in it was present.

0.0.5

  • Added AutoHotkey.Interop as a dependency to prevent future rejections.

0.0.4

  • A_ScreenWidth - 0, A_ScreenHeight - 0to A_ScreenWidth + 1, A_ScreenHeight + 1\ This arithmetic fixes the resolution problem at the cost of being a pixel wider and taller.

0.0.3

  • SetTitleMatchMode, RegEx to SetTitleMatchMode, 2 SetTitleMatchMode, slow
  • Removed BepInEx 5.4.22.0 - Lethal Company line, this makes it more consistent.
  • A_ScreenWidth, A_ScreenHeight changed to A_ScreenWidth - 0, A_ScreenHeight - 0\ Should fix resolution being incorrect.

0.0.2

  • Fixed readme.
  • Added Return

0.0.1

  • Release