Jump to content

Help on a letter variation


Recommended Posts

I was wondering if it would be possible, in autoit, to give a variation a a word.

The word is AABBCCDD, and making all the 256 combinations out of it using upper and lowercase letters. such as

AABBCCDD

aABBCCDD

aaBBCCDD

so on and so fourth.

Thanks.

Link to comment
Share on other sites

;AABBCCDD
;this needs to be run in scite
For $1 = 0 To 1
    For $2 = 0 To 1
        For $3 = 0 To 1
            For $4 = 0 To 1
                For $5 = 0 To 1
                    For $6 = 0 To 1
                        For $7 = 0 To 1
                            For $8 = 0 To 1
                                ConsoleWrite(X("A",$1)&X("A",$2)&X("B",$3)&X("B",$4)&X("C",$5)&X("C",$6)&X("C",$7)&X("C",$8)&@LF)
                            Next
                        Next
                    Next
                Next
            Next
        Next
    Next
Next
Func X($L,$C)
    Switch $C
        Case 1
            Return StringUpper($L)
        Case 0
            Return StringLower($L)
    EndSwitch
EndFunc

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Ok i did that, but the go and stuff like that are greyed out still.

should i have a language selected?

I downloaded from http://scintilla.sourceforge.net/SciTEDownload.html

the windows exe full download thats 780K, and copy and pasted the code into it, then saved it as aabbccdd.au3, but the tools>go compile,etc are all greyed out.

Edited by Kagedmaniak
Link to comment
Share on other sites

Ok i did that, but the go and stuff like that are greyed out still.

should i have a language selected?

I downloaded from http://scintilla.sourceforge.net/SciTEDownload.html

the windows exe full download thats 780K, and copy and pasted the code into it, then saved it as aabbccdd.au3, but the tools>go compile,etc are all greyed out.

try this one.

http://www.autoitscript.com/autoit3/scite/downloads.php

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...