Sub cuemove_Click
Dim cuelistnum As Int :cuelistnum=0
For cuelistnum = 0 To cuelist.Size - 1 'sets a for next loop to size of list
Dim s, xcoordinates, ycoordinates As String 'sets variables needed
s = cuelist.Get(cuelistnum) 'gets the full x and y coordinates
xcoordinates = Regex.Split(" ",s)(0) 'extrapolates the x coordinates
ycoordinates = Regex.Split(" ",s)(1) 'extrapolates the y coordinates
slowdowncue(100) 'pauses animation for x amount of seconds
cueball_float.Move(xcoordinates,ycoordinates,True) 'moves to coordinates
cuelistnum=cuelistnum+1 'adds one to number for next iteration
Next
End Sub
Sub slowdowncue(time As Int)
Dim timenow As Long
timenow = DateTime.Now 'set timenow to present time
Do While DateTime.Now < timenow + time 'checks to see if ready
Loop
End Sub