Jump to content

How to typw down a list?


lolp1
 Share

Recommended Posts

Hello, my goal is to go down a list of names I want, but I don't know how to do it, for example, I want to do :

$name = Send(blah1)
Send($name) 
Send($name)

But thats horrible context, when I do that I want it to go from name Blah1 to Blah100.

So

Send($name) would send blah1
Send($name) would send blah2

Could someone explain to me how this can be done. Please and thank you.

Link to comment
Share on other sites

For $n = 1 To 100
     Send ( "Blah" & $n )
Next
like that ?

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Link to comment
Share on other sites

It does the idea I'm looking for, except all to fast, I will be doing func(s) before repating it, for example:

Sleep(5000)
Run("notepad.exe")
Send($name) - This needs to send $blah1

--

Then I would be doing the same thing agian:

Sleep(5000)
Run("notepad.exe") - This needs to send $blah2
Send($name)

So I couldnt have it send them all at once, I would need to be able to call it when I needed

Edited by lolp1
Link to comment
Share on other sites

  • Moderators

Put all your $name to be sent in an Array, and use RunWait if you need for the app to finish before you continue on to the next one.

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.

Link to comment
Share on other sites

Put all your $name to be sent in an Array, and use RunWait if you need for the app to finish before you continue on to the next one

To tell you the truth, I really don't understand exzactly what that means, maybe explain a little more or show an example?

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