Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/02/2015 in all areas

  1. @JohnOne Using PixelSearch function with the parameter color = 0xFFFFFF, and, a shade-variation = 1, the colour/color and its shades (or its colour-variations) that can be matched are:- 0xFFFFFF, 0xFEFFFF, 0xFFFEFF, 0xFFFFFE, 0xFEFEFF, 0xFEFFFE, 0xFFFEFE, and 0xFEFEFE.
    1 point
  2. Jos

    SciTE & Au3Stripper (Solved)

    Thanks for the file. The issue lies in the limitations au3stripper currently has when the files have incompatible encoding. The Func _CFF_Choose() has 2 lines which require ANSII encoding and your main script is UTF8. These are the lines causing the ANSII standard: (1st & 3rd) $cRet_Button = GUICtrlCreateButton("âáä", $iW -($iButton_Width + 10), $iH - 40, $iButton_Width, 30) EndIf $cCan_Button = GUICtrlCreateButton("áéèåì", $iW -($iButton_Width + 10) * 2, $iH - 40, $iButton_Width, 30) Jos
    1 point
  3. In this case you need a counter: ;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Global $aText[] = ["01_TextFile", "02_TextFile", "03_TextFile"] Global $sDirforTxtFiles = "C:\Temp\" Global $iFound = 0 $sUsername = @UserName ; Pulls username that is logged in ;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ; SCRIPT START For $i = 0 To UBound($aText) - 1 $hTextFile = FileOpen($sDirforTxtFiles & $aText[$i] & ".txt", 0) $sReadText = FileRead($hTextFile) FileClose($hTextFile) If StringRegExp($sReadText, $sUsername) Then $iFound = $iFound + 1 MainScript() EndIf Next If $iFound = 0 Then NotInTextFile() If $iFound > 1 Then FoundMultipleTimes() Func MainScript() MsgBox(0, "USER FOUND", "In following textfile: " & $aText[$i]) EndFunc ;==>MainScript Func NotInTextFile() MsgBox(0, "", "USER NOT IN ANY TEXTFILE") EndFunc ;==>NotInTextFile Func FoundMultipleTimes() MsgBox(0, "", "USER FOUND MULTIPLE TIMES") EndFunc ;==>FoundMultipleTimes
    1 point
  4. Then I would set a flag and call the Not-Found-Function after all files have been checked: ;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Global $aText[] = ["01_TextFile", "02_TextFile", "03_TextFile"] Global $sDirforTxtFiles = "C:\Temp\" Global $bFound = False $sUsername = @UserName ; Pulls username that is logged in ;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ; SCRIPT START For $i = 0 To UBound($aText) - 1 $hTextFile = FileOpen($sDirforTxtFiles & $aText[$i] & ".txt", 0) $sReadText = FileRead($hTextFile) FileClose($hTextFile) If StringRegExp($sReadText, $sUsername) Then $bFound = True MainScript() EndIf Next If $bFound = False Then NotInTextFile() Func MainScript() MsgBox(0, "USER FOUND", "In following textfile: " & $aText[$i]) EndFunc ;==>MainScript Func NotInTextFile() MsgBox(0, "", "USER NOT IN ANY TEXTFILE") EndFunc ;==>NotInTextFile
    1 point
×
×
  • Create New...