Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

I want to randomize a list

$
0
0

I have a file, database.txt, that looks like:

 

123456789;avi1.avi

987654321;avi2.avi

456789123;avi3.avi

 

The numbers represent a barcode and the avi is a video of the product in use. My script counts the number of lines in the database.txt file at the start of the program. The number of lines in the database.txt changes when there are new videos added to the file. I want to count the lines in the txt file and then play each video randomly but at least once per loop. I then want the list randomized again (not the same as last time) and continue playing the videos in a new order. How can I get autoit to do this?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>