Sign in to follow this  
Followers 0
ald4r1s

Random

3 posts in this topic

Hi,

I've got a little problem with AutoIT

I want my script to open notepad, and type all possible configurations of two uppercase letters, like: AA AB AC...ZZ

Is it possible to do?

How to?

Share this post


Link to post
Share on other sites



Look at the example for the Random function. That oughta get you started.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

What does this have to do with Random? I assume you mean that you have a random question.

$sPermutations = ""
For $i=0 To 25
    For $j=0 To 25
        $sPermutations &= Chr(65+$i) & Chr(65+$j) & " "
    Next
Next
$sPermutations = StringTrimRight($sPermutations, 1)
Run("notepad.exe")
WinWait("[CLASS:Notepad]")
ControlSetText("[CLASS:Notepad]", "", "Edit1", $sPermutations)

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