Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make CSV a valid format
  • Loading branch information
rcmaehl committed Aug 9, 2021
1 parent d2b8003 commit 3713169
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand All @@ -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"))
Expand Down Expand Up @@ -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
;;;
Expand Down

0 comments on commit 3713169

Please sign in to comment.