Jump to content
Sign in to follow this  

read random lines from a txt file?

Recommended Posts

i havent used autoit for quite awhile, and i used to use it alot

heres what i want to do.

i want to make a list of random names.

the names can be no more than 32 characters long

the name cannot start with numbers

they can not contain capital letters

they can not contain spaces

they can not contain any symbol except for underscore (_)

the underscore symbol cannot be used first, last or twice in a row

im pretty sure i can figure out how to do this, but the thing i am having trouble with, is making a loop, where it randomly reads names off of a .txt file into a variable, then adds other variables to it,like numbers, and other words until it is 32 characters long OR LESS, just meaning.. dont go over 32 characters. i want all different size names. either way, i was thinking i could make a loop





but i want the variable %random% to change randomly

i also want underscores to be added, and i want all different sized names UP TO 32 characters

for example,






then i would use some random loop where it is a 50% chance to add an underscore

to the end of the variable, then randomly find another line, add it to that,

then run through another random loop, where it decided to either continue making the name, or save it to the list.

afterwards, save it like this.


i pretty much just need to know how to make a random number each time for the filereadline command

any help, much appreciated

hopefully i can have this namelist maker ready soon


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post

Link to post
Share on other sites

if you were liking very much version 2. you will enjoy more the 3 you have a tool converter to convert as much as possible the version 2 scripts.

Good Scripting :D

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...