Skip to content

Instantly share code, notes, and snippets.

@sprite-1
Created January 12, 2019 05:16
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 sprite-1/60897397fd7061b0d14d14d17ecc2987 to your computer and use it in GitHub Desktop.
Save sprite-1/60897397fd7061b0d14d14d17ecc2987 to your computer and use it in GitHub Desktop.
Launcher for Manuskript on Windows platforms to prevent the console window from being open.
/*
Author: ꜱᴩʀɪᴛᴇ①
https://gist.github.com/sprite-1
Manuskript Launcher for Windows
This is a temporary fix for the console window showing up in
when opening Manuskript.exe. It works by simply hiding it once
it's been detected.
The console window will still be open while Manuskript is
loading but as soon as the main window is open, the console
closes.
*/
#NoEnv
#NoTrayIcon
#SingleInstance Ignore
SetWorkingDir %A_ScriptDir%
If FileExist("manuskript.exe")
{
Run, manuskript.exe
WinWait, ahk_class ConsoleWindowClass ahk_exe manuskript.exe
WinWaitActive, ahk_class Qt5QWindowIcon ahk_exe manuskript.exe
Winhide, ahk_class ConsoleWindowClass ahk_exe manuskript.exe
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment