 PrgLnchMon := 0 ; Device PrgLnch is run from
 PrgLnchOpt.dispMonNamesNo := 9 ;No more than 9 displays!?
 targMonitorNum := 1
-primaryMon := 1 ; placeholder
 ResIndexList := ""
 
+
+
+
+;Done here, else complications with PrgLnch.Monitor
+Gui, PrgLnchOpt: New
+
+;Get def. mon list...
+
+GetDisplayData(, iDevNumArray, , , , , , -3)
+
+; Can change
+
+PrgLnch.Monitor := GetPrgLnchMonNum(iDevNumArray, 1)
 
 	if (!A_IsUnicode)
 	msgbox, 8192 , Task Dialogs, Chinese Characters in ANSI Task Dialogs!
 
 SplashyProc("*Loading", 1)
-
-;Done here, else complications with PrgLnch.Monitor
-Gui, PrgLnchOpt: New
-
-;Get def. mon list...
-
-GetDisplayData(, iDevNumArray, , , , , , -3)
-
-; Can change
-
-PrgLnch.Monitor := GetPrgLnchMonNum(iDevNumArray, primaryMon, 1)
-
 sleep 20
 SplashyProc("*Loading")
 

	{
		case "*Release":
		{
		if (action)
		%SplashRef%(Splashy, {InitSplash: 1}*)
		else
		%SplashRef%(Splashy, {release: 1}*)
		return
		}
		case "*Loading":
		{

	if (hwndParent != PrgLnch.PrgHwnd && hwndParent != PrgLnchOpt.PrgHwnd)
	{
	DetectHiddenWindows, On
		if (WinExist("ahk_id" . PrgLnch.PrgHwnd) || WinExist("ahk_id" . PrgLnchOpt.PrgHwnd))
		SetTimer TaskDialogMonitor, -300
		else
		MsgBox, 8192, Task Dialog, Informational: PrgLnch form AWOL:`nNo parent window for dialog.
	DetectHiddenWindows, Off
	hwndParent := 0
	}
