diff --git a/WhyNotWin11.au3 b/WhyNotWin11.au3 index 310ec8e8..0d591016 100644 --- a/WhyNotWin11.au3 +++ b/WhyNotWin11.au3 @@ -122,14 +122,14 @@ Func ProcessCMDLine() Exit 1 Case Else Switch $CmdLine[2] - Case "TXT" + Case "CSV", "TXT" $aOutput[0] = True $aOutput[1] = $CmdLine[2] $aOutput[2] = $CmdLine[3] _ArrayDelete($CmdLine, "1-3") If UBound($CmdLine) = 1 Then ExitLoop Case Else - MsgBox(0, "Invalid", "Missing FORMAT parameter for /format." & @CRLF) + MsgBox(0, "Invalid", "Invalid FORMAT parameter for /format." & @CRLF) Exit 1 EndSwitch EndSelect @@ -228,7 +228,7 @@ Func Main(ByRef $aResults, ByRef $aOutput) #cs ; 2.0 Theming Enums Local Enum $iGeneral = 0, $iText, $iIcons, $iStatus - + Local Enum $iBackground = 0, $iSidebar, $iFooter, $iResults Local Enum $iDefault = 0, $iName, $iVersion, $iHeader, $iSubHead, $iLinks, $iChecks, $iResults Local Enum $iGithub = 0, $iDonate, $iDiscord, $iLTT, $iWork, $iSettings @@ -371,7 +371,7 @@ Func Main(ByRef $aResults, ByRef $aOutput) Local $hBannerText = GUICtrlCreateLabel("", 130, 560, 90, 40, $SS_CENTER + $SS_CENTERIMAGE) GUICtrlSetFont(-1, $aFonts[$FontSmall] * $DPI_RATIO, $FW_NORMAL, $GUI_FONTUNDER) GUICtrlSetBkColor(-1, _HighContrast(0xE6E6E6)) - + Local $sBannerURL = _SetBannerText($hBannerText, $hBanner) #ce Maybe Readd Later @@ -602,10 +602,10 @@ Func Main(ByRef $aResults, ByRef $aOutput) #Region Advanced Checks Tab #cs Local $hAdv = GUICtrlCreateTabItem("Advanced Checks") - + Local $hAdvCheck[11][3] Local $hAdvLabel[11] = ["Camera", "Display Depth", "Display Resolution", "Display Size", "Internet Access", "S Mode", "", "", "", "", ""] - + _GDIPlus_Startup() For $iRow = 0 To 10 Step 1 $hAdvCheck[$iRow][0] = GUICtrlCreateLabel("?", 113, 110 + $iRow * 40, 40, 40, $SS_CENTER + $SS_SUNKEN + $SS_CENTERIMAGE) @@ -629,7 +629,7 @@ Func Main(ByRef $aResults, ByRef $aOutput) ;GUICtrlSetTip(-1, $aInfo[$iRow + 10], "", $TIP_NOICON, $TIP_CENTER) Next _GDIPlus_Shutdown() - + If _InternetCheck() Then _GUICtrlSetState($hAdvCheck[4][0], $iPass) GUICtrlSetData($hAdvCheck[4][2], _Translate($iMUI, "Detected")) @@ -881,6 +881,7 @@ Func OutputResults(ByRef $aResults, $aOutput) For $iLoop = 0 To 10 Step 1 FileWrite($hFile, "," & $aResults[$iLoop][0]) Next + FileWrite($hFile, @CRLF) FileClose($hFile) Case Else ;;;