hefty Posted April 22, 2006 Share Posted April 22, 2006 Hi, im trying to make a random name generator using string I provide. How would i do it? Link to comment Share on other sites More sharing options...
Infinitex0 Posted April 22, 2006 Share Posted April 22, 2006 I suggest you look at stringsplit The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
hefty Posted April 22, 2006 Author Share Posted April 22, 2006 I suggest you look at stringsplit here is what i have so far HotKeySet("{Home}", "n") While 1 Sleep(10000) WEnd Func n() $Gods1 = string( "grenth" ) $Gods2 = string( "dwayna" ) $Gods3 = string( "balthazar" ) $Gods4 = string( "melandru" ) $pet1 = string( "spider" ) $pet2 = string( "lynx" ) $pet3 = string( "hog" ) $pet4 = string( "strider" ) $pet5 = string( "bear" ) $pet6 = string( "stalker" ) $FirstName = Random(string $Gods(Random(int) $LastName = Random(string $pet(Random(int) $FullName = string( $FirstName + "s " + $Lastname ) MsgBox(64, "Your Pet's Name", $FullName ) EndFunc But it doesnt choose a random variable. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 22, 2006 Share Posted April 22, 2006 Multiple threads on the same topic are a bad thing... I answered this at thread #25082. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now