Jump to content
Sign in to follow this  
ald4r1s

Random

Recommended Posts

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...