I managed to get it windowed using the command line argument "-windowed". I've also followed these instructions to make it widescreen capable and set it to my primary monitor size. This all works fine.
My problem is now that I can't seem to reposition the window or remove the border style.
My usual go-to script didn't work:
Code: Select all
; Borderless windowed mode - F12
#UseHook On
^!F12::
WinGet WindowID, ID, A
WinSet Style, -0xC40000, ahk_id %WindowID%
WinMove ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
Return
Code: Select all
#SingleInstance Force
Run "F:\Games\Freelancer\EXE\freelancer.exe" -windowed, F:\Games\Freelancer\EXE,, FreelancerPID
WinWait ahk_pid %FreelancerPID%,, 5
if (ErrorLevel = 1) {
ExitApp
}
WinGet WindowID, ID, ahk_pid %FreelancerPID%
WinActivate ahk_id %WindowID%
WinSet Style, -0xC40000, ahk_id %WindowID%
WinMove ahk_id %WindowID%, , 0, 0, 1920, 1080
WinWaitClose ahk_id %WindowID%
ExitApp
#IfWinActive ahk_exe freelancer.exe
#IfWinActive