 	
 	GuiControl, PrgLnchOpt: Disable, CmdLinPrm
 	GuiControl, PrgLnchOpt:, CmdLinPrm
-	GuiControl, PrgLnchOpt:, ChgResonSwitch, 0
-	GuiControl, PrgLnchOpt: Disable, ChgResonSwitch
+	GuiControl, PrgLnchOpt:, ChgResPrgOnClose, 0
+	GuiControl, PrgLnchOpt: Disable, ChgResPrgOnClose
+	GuiControl, PrgLnchOpt:, ChgResOnSwitch, 0
+	GuiControl, PrgLnchOpt: Disable, ChgResOnSwitch
 	GuiControl, PrgLnchOpt:, PrgMinMax, -1
 	GuiControl, PrgLnchOpt: Disable, PrgMinMax
 	GuiControl, PrgLnchOpt:, PrgPriority, -1

	{
	GuiControl, PrgLnch:, RunBatchPrg, &Cancel Batch
	waitBreak := 0
	SetTimer, WatchSwitchOut, 1000
	}
	else
	{
		if (PrgPID)
		{
		waitBreak := 0
		SetTimer, WatchSwitchOut, -1000
		}
	GuiControl, PrgLnch:, RunBatchPrg, &Run Batch
	}
}
return

	}
return stat
}
SetResDefaults(lnchStat, targMonitorNum, ByRef scrWidthDefArr, ByRef scrHeightDefArr, ByRef scrFreqDefArr, SaveVars := 0)
{
	if (SaveVars)
	{
