There a many ways that it could be done. Here's a "nudge" that shows one of those ways:
; Data from a text-file. Can also be much larger in rows and columns
; [[XPos, YPos, width, height],[...]]
Global $testdata[4][4] = [["00.0", "00.00", "21.00", "29.70"], ["00.05", "00.05", "20.00", "28.70"], ["0.05", "5", "20.00", "05.00"], ["10.00", "00.50", "03.00", "03.00"]]
; Call the function DrawRectangles() for every array in my $testdata-array.
For $i = 0 to UBound($testdata)-1
DrawRectangles($testdata[$i][0], $testdata[$i][1], $testdata[$i][2], $testdata[$i][3])
Next
Func DrawRectangles($x, $y, $w, $h)
; Draw a dummy-rectangle
; Open the preferences-window of this rectangle
; I ControlClick a form and would like to paste the XPos-value of the testdata-array
ConsoleWrite("I would fill in the X-Position: " & $x & @CRLF)
; Some AutoIT code again
; I ControlClick a form and would like to paste the YPos-value of the testdata-array
ConsoleWrite("I would fill in the Y-Position: " & $y & @CRLF)
; I ControlClick a form and would like to paste the width-value of the testdata-array
ConsoleWrite("I would fill in the width: " & $w & @CRLF)
; I ControlClick a form and would like to paste the height-value of the testdata-array
ConsoleWrite("I would fill in the height: " & $h & @CRLF)
; ControlClick the "OK" Button of the preferences window and repeat for the next array-entry
EndFunc