 SendMessage 0x147, 0, 0, , ahk_id %IniChoiceHwnd%  ; CB_GETCURSEL
 
 
-If (ErrorLevel = "FAIL")
+If (ErrorLevel == "FAIL")
 	{
 	Gui, PrgLnch: Submit, Nohide
 	MsgBox, 8192, , CB_GETCURSEL Failed

DoBatchPower(ByRef btchPowerNames, ByRef btchSelPowerIndex, SelIniChoicePath, arrPowerPlanNames, btchPrgPresetSel, toPreset := 0)
{
strTemp := "", strRetVal := "|"

if (btchSelPowerIndex)
{

				PrgPIDtmp := "TERM"
				FixPrgPIDStatus(currBatchno, prgIndex, lnchStat, PrgPIDtmp, PrgPID, PrgListPID)
					;WinShow ahk_class Shell_TrayWnd
					if (DefResNoMatchRes(SelIniChoicePath))
					{
						if (!ChangeResolution(dispMonNames, regoVar, targMonitorNum))
						{
						sleep, 1000
						PrgLnchOpt.scrWidth := PrgLnchOpt.scrWidthDef
						PrgLnchOpt.scrHeight := PrgLnchOpt.scrHeightDef
						PrgLnchOpt.scrFreq := PrgLnchOpt.scrFreqDef
						}
					}
				outStr := PrgNames[lnchPrgIndex] . " could not launch with error " . A_LastError
