rabbitkillrun Posted January 21, 2009 Share Posted January 21, 2009 (edited) Ok, so for about an hour now i've been trying to figure out how to make a list of letters like this: a b c d ... zzzzy zzzzz problem is, because the ascii codes of upper and lower case letters, and numbers are seperated, the code i've got won't work to create a list with all these... can anyone find a solution to this...? here's what i've got so far... (couldn't get lots of nested loops to work...): expandcollapse popupfor $l1 = 97 to 122 $word = chr($l1) ConsoleWrite($word&@CRLF) next for $l2 = 97 to 122 for $l1 = 97 to 122 $word = chr($l2) & chr($l1) ConsoleWrite($word&@CRLF) next next for $l3 = 97 to 122 for $l2 = 97 to 122 for $l1 = 97 to 122 $word = chr($l3) & chr($l2) & chr($l1) ConsoleWrite($word&@CRLF) next next next for $l4 = 97 to 122 for $l3 = 97 to 122 for $l2 = 97 to 122 for $l1 = 97 to 122 $word = chr($l4) & chr($l3) & chr($l2) & chr($l1) ConsoleWrite($word&@CRLF) next next next next for $l5 = 97 to 122 for $l4 = 97 to 122 for $l3 = 97 to 122 for $l2 = 97 to 122 for $l1 = 97 to 122 $word = chr($l5) & chr($l4) & chr($l3) & chr($l2) & chr($l1) ConsoleWrite($word&@CRLF) next next next next next Edited January 21, 2009 by rabbitkillrun Link to comment Share on other sites More sharing options...
weaponx Posted January 21, 2009 Share Posted January 21, 2009 This has been asked a few times before:http://www.autoitscript.com/forum/index.ph...amp;hl=generate Link to comment Share on other sites More sharing options...
rabbitkillrun Posted January 21, 2009 Author Share Posted January 21, 2009 thanks... i tried searching, but i couldn't think of the right search term... although it still doesn't really help much with my problem with the gaps between the ascii characters... Link to comment Share on other sites More sharing options...
rabbitkillrun Posted February 22, 2009 Author Share Posted February 22, 2009 sorry for digging up this old topic to answer my own question, but thought it could be useful to another autoit newb in the future... i just created an array containing all the characters i wanted and went through charList[$i] rather than using char($i)... i can't see how i managed to miss that before... i guess that's what late night programming does to you... 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