Teckx Posted January 23, 2019 Share Posted January 23, 2019 I’m comfortable with autoit but I’ve run into a wall. I can’t think of a method on how to generate all unique combinations of a-z at 3 characters long aaa aab etc Link to comment Share on other sites More sharing options...
Nine Posted January 23, 2019 Share Posted January 23, 2019 $Letters = StringSplit("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",") Combi("", 3) Func Combi($Str, $MaxLen) if StringLen($Str) = $MaxLen Then FileWriteLine("Test.txt", "Letters list = " & $Str) Return EndIf For $i = 1 to $Letters[0] Combi($Str & $Letters[$i], $MaxLen) Next EndFunc Teckx 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Teckx Posted January 23, 2019 Author Share Posted January 23, 2019 Thank you ill give this a go! Link to comment Share on other sites More sharing options...
jdelaney Posted January 23, 2019 Share Posted January 23, 2019 (edited) $A = 65 For $i = 0 to 25 For $j= 0 to 25 For $k = 0 to 25 ConsoleWrite(Chr($A+$i) & Chr($A+$j) & Chr($A+$k) & @CRLF) Next Next Next Edit: didn't know why I put in 32...25 starting from 0 is correct. I do like the recursion used in the other example though. Edited January 23, 2019 by jdelaney Teckx 1 IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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