Advertisement
Guest User

Delete 3 and more

a guest
Oct 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.89 KB | None | 0 0
  1. #include <FileConstants.au3>
  2. #include <AutoItConstants.au3>
  3. #include <Array.au3>
  4. #include <File.au3>
  5.  
  6. local $aFile
  7. _FileReadToArray(@ScriptDir &"\Zahlen Key.txt", $aFile)
  8. $sFileName2 = @ScriptDir &"\Zahlen kuerzer.txt"
  9. $hFilehandle2 = FileOpen($sFileName2, $FO_OVERWRITE)
  10. Local $sOriginal
  11. Local $i
  12. $str = 0
  13. While ($str <> 11881376)
  14. $str += 1
  15. $sOriginal = $aFile[$str]
  16. While 1
  17. $si = 0
  18.     $sOne = StringMid($sOriginal, $i+1, 1)
  19.     $sTwo = StringMid($sOriginal, $i+2, 1)
  20.     $sThree = StringMid($sOriginal, $i+3, 1)
  21.     $sFour = StringMid($sOriginal, $i+4, 1)
  22.     $sFive = StringMid($sOriginal, $i+5, 1)
  23.     If $sOne = $sTwo Then
  24.        If $sTwo = $sThree Then
  25.         ExitLoop
  26.        EndIf
  27.     Else
  28.         ;Nothing
  29.     EndIf
  30.  
  31.     If $sTwo = $sThree Then
  32.        If $sThree = $sFour Then
  33.         ExitLoop
  34.        EndIf
  35.     Else
  36.         ;Nothing
  37.     EndIf
  38.  
  39.     If $sThree = $sFour Then
  40.        If $sFour = $sFive Then
  41.         ExitLoop
  42.        EndIf
  43.     Else
  44.         ;Nothing
  45.      EndIf
  46.  
  47.     If $sOne = $sTwo Then
  48.        If $sTwo = $sFour Then
  49.         ExitLoop
  50.        EndIf
  51.     Else
  52.         ;Nothing
  53.      EndIf
  54.  
  55.     If $sTwo = $sThree Then
  56.        If $sThree = $sFive Then
  57.         ExitLoop
  58.        EndIf
  59.     Else
  60.         ;Nothing
  61.      EndIf
  62.  
  63.     If $sOne = $sThree Then
  64.        If $sThree = $sFour Then
  65.         ExitLoop
  66.        EndIf
  67.     Else
  68.         ;Nothing
  69.      EndIf
  70.  
  71.     If $sTwo = $sFour Then
  72.        If $sFour = $sFive Then
  73.         ExitLoop
  74.        EndIf
  75.     Else
  76.         ;Nothing
  77.      EndIf
  78.  
  79.     If $sOne = $sThree Then
  80.        If $sThree = $sFive Then
  81.         ExitLoop
  82.        EndIf
  83.     Else
  84.         ;Nothing
  85.      EndIf
  86.  
  87.     If $sOne = $sTwo Then
  88.        If $sTwo = $sFive Then
  89.         ExitLoop
  90.        EndIf
  91.     Else
  92.         ;Nothing
  93.      EndIf
  94.  
  95.     If $sOne = $sFour Then
  96.        If $sFour = $sFive Then
  97.         ExitLoop
  98.        EndIf
  99.     Else
  100.         FileWrite($hFilehandle2, $sOriginal & @CRLF)
  101.         ExitLoop
  102.      EndIf
  103.     FileWrite($hFilehandle2, $sOriginal & @CRLF)
  104.     ExitLoop
  105. WEnd
  106. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement