Sign in to follow this  
Followers 0
lolp1

How to typw down a list?

6 posts in this topic

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.

Share this post


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


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


[center]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.[/center]

Share this post


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

Share this post


Link to post
Share on other sites

You haven't explained what you really want to do with this - give some more detail as to what you want to accomplish.

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