Created
January 12, 2019 05:16
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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