 			else
 			iDevNumArray[iDevNumb] := iLocDevNumArray[iDevNumb]
 
-			dispMonNames[iDevNumb] := StrGet(&DISPLAY_DEVICE + OffsetDWORD, offsetWordStr)
-
-			if !(dispMonNames[iDevNumb])
+			dispMonNames[iDevNumb] := StrGet(&DISPLAY_DEVICE + OffsetDWORD, offsetWORDStr)
+
+			if (!dispMonNames[iDevNumb])
 			{
 			; happens on XP
 			dispMonNamesNo := iDevNumb


	PrgCmdLineEnable(selPrgChoice, PrgCmdLine, cmdLinHwnd, PrgResolveShortcut, !InStr(PrgLnkInf[selPrgChoice], "*"), InStr(PrgLnkInf[selPrgChoice], "|"))

	PrgURLEnable(PrgUrlTest, UrlPrgIsCompressed, selPrgChoice, PrgChoicePaths, selPrgChoiceTimer, PrgLnkInf, PrgUrl, PrgVer, PrgVerNew, UpdturlHwnd)
	GuiControl, PrgLnchOpt: ChooseString, iDevNum, %targMonitorNum%
	TogglePrgOptCtrls(txtPrgChoice, selPrgChoice, PrgChgResonSwitch, PrgRnMinMax, PrgRnPriority, PrgBordless, PrgLnchHide, 1, InStr(PrgLnkInf[selPrgChoice], "\", false, StrLen(PrgLnkInf[selPrgChoice])) || InStr(PrgLnkInf[selPrgChoice], "|"))
	}


ChkURLPrgExe(TstUrl)
{
strTemp := 0, temp := 0
;strTemp := SubStr(PrgUrlTest, InStr(PrgUrlTest, ".",, -1) + 1)
SplitPath, TstUrl,,, strTemp
if (strTemp = "exe" ) || (strTemp = "bat" ) || (strTemp = "com" ) || (strTemp = "cmd" ) || (strTemp = "pif" ) || (strTemp = "msc" ) || (strTemp = "scr" )
Return 0
else
{

	if (strTemp = "gz") || (strTemp = "Z") || (strTemp = "bz2") || (strTemp = "lzma") || (strTemp = "xz")
	{
	SplitPath, strTemp,,, temp
	if (temp = "tar")
	Return 1
	}
	else
	{
	if (strTemp = "tgz") || (strTemp = "tbz2") || (strTemp = "tlz") || (strTemp = "txz") || (strTemp = "xz") || (strTemp = "7z") || (strTemp = "alz") || (strTemp = "arj") || (strTemp = "cab") || (strTemp = "cfs") ||	(strTemp = "jar") || (strTemp = "lzh") || (strTemp = "lha") || (strTemp = "paq6") || (strTemp = "paq7") || (strTemp = "paq8") || (strTemp = "pea") || (strTemp = "rar") || (strTemp = "paq6") || (strTemp = "sit") || (strTemp = "sitx") || (strTemp = "xar") || (strTemp = "zip") || (strTemp = "zipx") || (strTemp = "zpaq") || (strTemp = "zz")
	Return 1
	; There are others: apk arc ba b1 car cpt dar dgc dmg ear ha hki ice kgb partimg pim qda rk sen shk sqx  {uc .uc0 .uc2 .ucn .ur2 .ue2} uha war wim xp3 yz1 zoo
	}
Return -1
} 

}

; https://autohotkey.com/board/topic/54927-regread-associated-program-for-a-file-extension/
AssocQueryApp(prgPath)
{
SplitPath, prgPath, , , Ext

RegRead, type, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.%Ext%, Application
	If (ErrorLevel)
	{
		;Default setting
	RegRead, type, HKCR, .%Ext%
	RegRead, act , HKCR, %type%\shell
		If (ErrorLevel)
		act = open
	RegRead, strPrg , HKCR, %type%\shell\%act%\command
	}
	else
	{ ;Current user has overridden default setting
	RegRead, act, HKCU, Software\Classes\Applications\%type%\shell
		If (ErrorLevel)
		act = open
	RegRead, strPrg, HKCU, Software\Classes\Applications\%type%\shell\%act%\command
	}
	; strip first quote
foundpos := InStr(strPrg, "")

strPrg := SubStr(strPrg, foundpos + 1, StrLen(strPrg))
; strip last quote and all that follows
foundpos := InStr(strPrg, """")

if (foundpos)
strPrg := SubStr(strPrg, 1, foundpos-1)

return strPrg
}

; https://autohotkey.com/boards/viewtopic.php?t=5959
Util_VersionCompare(other,local)
