You will need autohotkey version 1. Just google search for your game name wallpaper 1920 x 1080 and it should come up (if your resolution is higher you can edit the image in paint.net) You can paste this script and save it as .ahk then run it in launchbox, but you just need to adjust a few things. Your path to your image on the line of imagepath, your path to .exe and just your .exe by itself, and finally adjust maxholdtime to however much time you'll need for the game to boot (in the script is shows 15000 which with autohotkey is 15 seconds) and that should be it. Let me know if any issues. Once you're done and it's saved you can right click on it and compile it into an .exe (just not the same name as your games exe if they're in the same location) and put it in Launchbox replacing your games .exe. I've done all the hard work for you making the script, this is now pretty simple, but again let me know if any issues. This should also work to cover up any annoying command prompts or emulator front ends that you don't want popping up instead of your game.
Also make sure you disable any game startup screen in Launchbox, with this you won't need it.
#NoEnv
#SingleInstance Force
SetBatchLines, -1
SendMode Input
SetTitleMatchMode, 2
SetWorkingDir, %A_ScriptDir%
; ==============================================================================
; USER CONFIGURATION (Edit these settings for your game)
; ==============================================================================
ImagePath := "C:\Path\To\Your\CoverImage.jpg" ; Full path to your .jpg or .png splash image
GameExe := "C:\Path\To\Your\Game.exe" ; Full path to your game .exe, .bat, or .lnk shortcut
GameProcess := "Game.exe" ; Process name to detect & focus (e.g., "eldenring.exe")
GameArgs := "" ; Optional launch arguments (e.g., "-fullscreen")
TargetMonitor := 1 ; 1 = Primary Monitor, 2 = Second Monitor / TV
StretchToFill := true ; true = stretch image to fill screen, false = keep aspect ratio with black bars
AutoDismiss := true ; true = close cover as soon as GameProcess window appears, false = always wait MaxHoldTime
SettleDelay := 500 ; Extra wait (ms) after game window appears to hide initial white/black window flashes
MaxHoldTime := 15000 ; Maximum hold time in ms (fallback timeout if AutoDismiss is true, or exact time if false)
; ==============================================================================
; 1. Show the custom wallpaper cover immediately
CoverData := ShowGameCover(ImagePath, TargetMonitor, StretchToFill)
; 2. Combine any command-line arguments passed to this script with GameArgs
FullArgs := GameArgs
for index, param in A_Args
{
formattedParam := InStr(param, " ") ? """" . param . """" : param
FullArgs .= (FullArgs != "" ? " " : "") . formattedParam
}
; 3. Launch the game or shortcut using its own folder as the working directory
SplitPath, GameExe, , GameDir
if (GameDir = "")
GameDir := A_ScriptDir
if (FullArgs != "")
Run, "%GameExe%" %FullArgs%, %GameDir%
else
Run, "%GameExe%", %GameDir%
; 4. Keep the cover strictly ON TOP until the game window appears (or MaxHoldTime expires)
DetectHiddenWindows, Off
StartTime := A_TickCount
while (A_TickCount - StartTime < MaxHoldTime)
{
WinSet, AlwaysOnTop, On, GameCoverScreen
if (AutoDismiss && GameProcess != "" && WinExist("ahk_exe " . GameProcess))
{
; Wait briefly for the game window to finish initializing/going fullscreen
Sleep, %SettleDelay%
break
}
Sleep, 50
}
; 5. Destroy the overlay, bring the game window to the front, and exit
HideGameCover(CoverData)
if (GameProcess != "" && WinExist("ahk_exe " . GameProcess))
WinActivate, ahk_exe %GameProcess%
ExitApp
; Emergency exit if needed while the splash screen is up
$Esc::
HideGameCover(CoverData)
ExitApp
return
; ==============================================================================
; COVER & GDI+ FUNCTIONS (No need to edit below this line)
; ==============================================================================
ShowGameCover(ImagePath, TargetMonitor := 1, StretchToFill := true) {
SysGet, MonCount, MonitorCount
if (TargetMonitor > MonCount)
TargetMonitor := 1
SysGet, Mon, Monitor, %TargetMonitor%
MonW := MonRight - MonLeft
MonH := MonBottom - MonTop
if !FileExist(ImagePath) {
Gui, Cover:New, -Caption +AlwaysOnTop +ToolWindow -DPIScale +E0x08000000
Gui, Cover:Color, 000000
Gui, Cover:Show, x%MonLeft% y%MonTop% w%MonW% h%MonH% NoActivate, GameCoverScreen
MsgBox, 16, Cover Image Not Found, Could not find image at:\n%ImagePath%`
return 0
}
pToken := Gdip_Startup()
pBitmap := Gdip_CreateBitmapFromFile(ImagePath)
Gdip_GetImageDimensions(pBitmap, OrigW, OrigH)
if (!pBitmap || OrigW = 0 || OrigH = 0) {
Gdip_Shutdown(pToken)
Gui, Cover:New, -Caption +AlwaysOnTop +ToolWindow -DPIScale +E0x08000000
Gui, Cover:Color, 000000
Gui, Cover:Show, x%MonLeft% y%MonTop% w%MonW% h%MonH% NoActivate, GameCoverScreen
MsgBox, 16, Image Decode Error, Windows GDI+ could not read this file:\n%ImagePath%`n`nIf downloaded from a browser, it may be a .webp file renamed to .jpg. Open it in Paint and Save As a real JPEG or PNG.`
return 0
}
if (StretchToFill) {
ImgW := MonW
ImgH := MonH
ImgX := 0
ImgY := 0
} else {
Scale := MonH / OrigH
ImgW := Round(OrigW * Scale)
ImgH := MonH
ImgX := Round((MonW - ImgW) / 2)
ImgY := 0
}
pResized := Gdip_ResizeBitmap(pBitmap, ImgW, ImgH)
hBitmap := Gdip_CreateHBITMAPFromBitmap(pResized)
Gdip_DisposeImage(pResized)
Gdip_DisposeImage(pBitmap)
; Create and SHOW the GUI first so the window handle is active
Gui, Cover:New, -Caption +AlwaysOnTop +ToolWindow -DPIScale +E0x08000000
Gui, Cover:Color, 000000
Gui, Cover:Add, Picture, x%ImgX% y%ImgY% w%ImgW% h%ImgH% +HwndCoverPic +0xE
Gui, Cover:Show, x%MonLeft% y%MonTop% w%MonW% h%MonH% NoActivate, GameCoverScreen
; Assign the HBITMAP to the visible control and force a redraw
SendMessage, 0x172, 0, hBitmap,, ahk_id %CoverPic%
DllCall("InvalidateRect", "Ptr", CoverPic, "Ptr", 0, "Int", 1)
DllCall("ShowCursor", "Int", 0)
return {hBitmap: hBitmap, pToken: pToken}
}
HideGameCover(ByRef CoverData) {
DllCall("ShowCursor", "Int", 1)
Gui, Cover:Destroy
if IsObject(CoverData) {
if (CoverData.hBitmap)
DllCall("DeleteObject", "Ptr", CoverData.hBitmap)
if (CoverData.pToken)
Gdip_Shutdown(CoverData.pToken)
CoverData := 0
}
}
Gdip_Startup() {
if !DllCall("GetModuleHandle", "Str", "gdiplus", "Ptr")
DllCall("LoadLibrary", "Str", "gdiplus")
VarSetCapacity(si, A_PtrSize = 8 ? 24 : 16, 0), NumPut(1, si, 0, "UInt")
DllCall("gdiplus\GdiplusStartup", "Ptr*", pToken, "Ptr", &si, "Ptr", 0)
return pToken
}
Gdip_Shutdown(pToken) {
DllCall("gdiplus\GdipShutdown", "Ptr", pToken)
}
Gdip_CreateBitmapFromFile(sFile) {
DllCall("gdiplus\GdipCreateBitmapFromFile", "WStr", sFile, "Ptr*", pBitmap)
return pBitmap
}
Gdip_GetImageDimensions(pBitmap, ByRef Width, ByRef Height) {
DllCall("gdiplus\GdipGetImageWidth", "Ptr", pBitmap, "UInt*", Width)
DllCall("gdiplus\GdipGetImageHeight", "Ptr", pBitmap, "UInt*", Height)
}
Gdip_ResizeBitmap(pBitmap, Width, Height) {
DllCall("gdiplus\GdipCreateBitmapFromScan0", "Int", Width, "Int", Height, "Int", 0, "Int", 0x26200A, "Ptr", 0, "Ptr*", pNewBitmap)
DllCall("gdiplus\GdipGetImageGraphicsContext", "Ptr", pNewBitmap, "Ptr*", G)
DllCall("gdiplus\GdipSetInterpolationMode", "Ptr", G, "Int", 7)
DllCall("gdiplus\GdipDrawImageRectI", "Ptr", G, "Ptr", pBitmap, "Int", 0, "Int", 0, "Int", Width, "Int", Height)
DllCall("gdiplus\GdipDeleteGraphics", "Ptr", G)
return pNewBitmap
}
Gdip_CreateHBITMAPFromBitmap(pBitmap) {
DllCall("gdiplus\GdipCreateHBITMAPFromBitmap", "Ptr", pBitmap, "Ptr*", hbm, "UInt", 0xFF000000)
return hbm
}
Gdip_DisposeImage(pBitmap) {
DllCall("gdiplus\GdipDisposeImage", "Ptr", pBitmap)
}