0 of 0

File information

Last updated

Original upload

Created by

Yeti

Uploaded by

RedxYeti

Virus scan

Safe to use

Tags for this mod

About this mod

Does your Starfield not always start maximized? Does clicking on it in the task bar do nothing? Then I've got the mod for you!

Requirements
Permissions and credits
Donations
This mod is designed to maximize Starfield when it launches. Half the time I start the game it's minimized.

You can also use task manager to do the same thing this mod does, but you'll have to do it every time.

Install:

ASI loader required https://www.nexusmods.com/starfield/mods/857

Use Mod Organizer 2, it might be grayed out with an X but it's working trust me

Or Put the file in your Data folder

Untested with vortex but it should work


Source
Spoiler:  
Show


#include <windows.h>

int main() {

    const wchar_t* windowTitle = L"starfield";
    int timeout = 20000;

    HWND hwnd = NULL;
    DWORD startTime = GetTickCount();

    while (GetTickCount() - startTime < timeout) {
        hwnd = FindWindow(NULL, windowTitle);
        if (hwnd != NULL) {
            ShowWindow(hwnd, SW_MINIMIZE); //mimimize first since the dll cant maximize sometimes.
            Sleep(1000);
            ShowWindow(hwnd, SW_MAXIMIZE);
            return 0;
        }
        Sleep(1000);
    }
    return 1;
}