bf2forlife Posted June 30, 2008 Share Posted June 30, 2008 opt("TrayIconDebug", 1) $let = "0123456789abcdefghijklmnopqrstuvwxyz" $file = FileOpen("output.txt", 2) If $file = -1 Then Exit For $a = 1 To StringLen($let) For $b = 1 To StringLen($let) For $c = 1 To StringLen($let) For $d = 1 To StringLen($let) $out = StringStripWS(StringMid($let, $a, 1) & StringMid($let, $b, 1) & StringMid($let, $c, 1) & StringMid($let, $d, 1),8);& StringMid($let, $e, 1) & StringMid($let, $f, 1) & StringMid($let, $g, 1), 8) If StringLen($out) > 4 Then Exit FileWriteLine($file, $out) Next Next Next next Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 30, 2008 Moderators Share Posted June 30, 2008 opt("TrayIconDebug", 1) $let = "0123456789abcdefghijklmnopqrstuvwxyz" $file = FileOpen("output.txt", 2) If $file = -1 Then Exit For $a = 1 To StringLen($let) For $b = 1 To StringLen($let) For $c = 1 To StringLen($let) For $d = 1 To StringLen($let) $out = StringStripWS(StringMid($let, $a, 1) & StringMid($let, $b, 1) & StringMid($let, $c, 1) & StringMid($let, $d, 1),8);& StringMid($let, $e, 1) & StringMid($let, $f, 1) & StringMid($let, $g, 1), 8) If StringLen($out) > 4 Then Exit FileWriteLine($file, $out) Next Next Next nextOf course there is... But if you can't do it, then you don't need it IMO. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
weaponx Posted June 30, 2008 Share Posted June 30, 2008 This is an Auto-It support forum, not C++. You would get more sympathy if you were trying to convert C++ into Auto-It. Link to comment Share on other sites More sharing options...
monoceres Posted June 30, 2008 Share Posted June 30, 2008 (edited) @bf2forlifeAs I have stated before (in this thread to be specific ) you should really try to learn and understand c++ for yourself. There is simply no use for us to feed you code that you will most likely not understand, be able to modify for your needs, compile etc.Your example is also quite simple so you should be able do translate it yourself after not to long time.Here's a good tutorial, I took my first step in c++ (and in programming) in it and it's really good.http://www.cplusplus.com/doc/tutorial/ Edited June 30, 2008 by monoceres Broken link? PM me and I'll send you the file! 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