Skip to content

Instantly share code, notes, and snippets.

@valacar
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valacar/a0b9c0582acb4c0d01c5 to your computer and use it in GitHub Desktop.
Save valacar/a0b9c0582acb4c0d01c5 to your computer and use it in GitHub Desktop.
Terraria Borderless Windowed Fullscreen Mode [AHK]
#SingleInstance Force
#Persistent
target = ahk_exe terraria.exe
WS_CAPTION := 0x00C00000
WS_SIZEBOX := 0x00040000
SetTimer Check, 1000
return
Check:
IfWinExist %target%
{
flags = % (WS_CAPTION | WS_SIZEBOX)
WinSet, Style, -%flags% ; remove window sizing borders and titlebar
WinMove, , , 0, 0, A_ScreenWidth, A_ScreenHeight
WinActivate
SetTimer Check, Off
ExitApp
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment