msgbox

Create dictionary

Sep 27th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; msgbox.vk.com
  2. #NoTrayIcon
  3. #SingleInstance Force
  4. SetBatchLines -1
  5. SetWorkingDir, % A_ScriptDir
  6.     SaveToFile := "output.txt"
  7.     InputChars := "123"
  8.     MyLenght := "3"
  9.         Loop, % StrLen(InputChars)
  10.         SingleChar%A_Index% := SubStr(InputChars, A_Index, "1")
  11.             If (MyLenght >= "1")
  12.             {
  13.             Loop, % StrLen(InputChars)
  14.                 {
  15.                 CurrentChar1 = % SingleChar%A_Index%
  16.                 if (MyLenght == "1")
  17.                 Output = % Output "`n" CurrentChar1
  18.                     If (MyLenght >= "2")
  19.                     {
  20.                     Loop, % MyLenght
  21.                         {
  22.                         CurrentChar2 = % CurrentChar1 SingleChar%A_Index%
  23.                         if (MyLenght == "2")
  24.                         Output = % Output "`n" CurrentChar2
  25.                         If (MyLenght >= "3")
  26.                             {
  27.                             Loop, % MyLenght
  28.                                 {
  29.                                 CurrentChar3 = % CurrentChar2 SingleChar%A_Index%
  30.                                 if (MyLenght == "3")
  31.                                 Output = % Output "`n" CurrentChar3
  32.                                 }
  33.                             }
  34.                         }
  35.                     }
  36.                 }
  37.             }
  38.     FileAppend, % Output, % SaveToFile
  39. ExitApp
  40.  
Advertisement
Add Comment
Please, Sign In to add comment