Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.49 KB | None | 0 0
  1. #include <Array.au3>
  2. $text = StringSplit( "All of the failures help to fuel success in the bloody and visceral weather game of chess", "", 1 )
  3. $line = StringSplit( FileRead( "links.txt"), @CRLF, 3 )
  4. _ArrayShuffle( $line )
  5. $out = ""
  6. $c = 0
  7. For $i=1 To $text[0]
  8.     $inc = ""
  9.     If ($text[$i]=" ") Then
  10.         $inc = " "
  11.     ElseIf ($c <= UBound($line)-1) Then
  12.         $inc = "[url=" & $line[$c] & "]" & $text[$i] & "[/url]"
  13.         $c = $c + 1
  14.     Else
  15.         $inc = $text[$i]
  16.     EndIf
  17.     $out = $out & $inc
  18. Next
  19. ClipPut($out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement