Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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
Of 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.

Posted

This is an Auto-It support forum, not C++. You would get more sympathy if you were trying to convert C++ into Auto-It.

Posted (edited)

@bf2forlife

As 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 by monoceres

Broken link? PM me and I'll send you the file!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...