lolp1 Posted October 8, 2006 Posted October 8, 2006 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.
zcoacoaz Posted October 8, 2006 Posted October 8, 2006 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]
lolp1 Posted October 8, 2006 Author Posted October 8, 2006 (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 October 8, 2006 by lolp1
Moderators SmOke_N Posted October 8, 2006 Moderators Posted October 8, 2006 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.
lolp1 Posted October 8, 2006 Author Posted October 8, 2006 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 oneTo tell you the truth, I really don't understand exzactly what that means, maybe explain a little more or show an example?
Confuzzled Posted October 13, 2006 Posted October 13, 2006 You haven't explained what you really want to do with this - give some more detail as to what you want to accomplish.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now