 			Break
 			}
 		}
+
 		if (fTemp)
 		{
-		PrgLnchOpt.scrWidth := ResArray[fTemp - 1, 1]
-		PrgLnchOpt.scrHeight := ResArray[fTemp - 1, 2]
-		PrgLnchOpt.scrFreq := ResArray[fTemp - 1, 3]
+		fTemp -= 1
+		PrgLnchOpt.scrWidth := ResArray[1, fTemp]
+		PrgLnchOpt.scrHeight := ResArray[2, fTemp]
+		PrgLnchOpt.scrFreq := ResArray[3, fTemp]
 
 			if (PrgChoicePaths[selPrgChoice])
 			IniProc(selPrgChoice)

		{
			if PrgPIDtmp is digit
			{
			temp := GetProcFromPath(PrgPaths)
			Process, Exist, %PrgPIDtmp%
				if (ErrorLevel)




			loop % PrgLnchOpt.dispMonNamesNo
			{
			SysGet, ms, MonitorWorkArea, % A_Index
				if (x >= msLeft && x <= msRight && y >= msTop && y <= msBottom)
