Advertisement
Guest User

A

a guest
Apr 28th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.56 KB | None | 0 0
  1. Func Load()
  2.         Local $aFile = StringRegExp(FileRead("Text.txt"), '(?im)^\h*?(?:Name|ID|PASS)\h*?:\h*(.*)$', 3)
  3.         Local $uBound = UBound($aFile), $aResult[$uBound / 3 + 1][3] = [['Name', 'ID', 'Pass']], $count = 1
  4.         For $i = 0 To $uBound - 1 Step 3
  5.                 $aResult[$count][0] = $aFile[$i] ;Name
  6.                 GUICtrlSetData($Combo, $aFile[$i])
  7.                 $aResult[$count][1] = $aFile[$i + 1] ;ID
  8.                 $aResult[$count][2] = $aFile[$i + 2] ;Pass
  9.                 $count += 1
  10.         Next
  11.         Return $aResult
  12. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement