Sign in to follow this  
Followers 0
Kagedmaniak

Help on a letter variation

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

awesome, thanks, ill download scite and try it out :whistle:

Ok, i dled scite and copied it in, now how do i execute it or anything?

Edited by Kagedmaniak

Share this post


Link to post
Share on other sites

awesome, thanks, ill download scite and try it out :whistle:

Ok, i dled scite and copied it in, now how do i execute it or anything?

Save it as "*whatever*.au3" and then press F5

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

awesome, that worked.

Thanks for everything!! :whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0