Mack Posted September 3, 2005 Posted September 3, 2005 $PAS1 = IniReadSection("config.ini", "section1") If @error Then MsgBox(4096, "", "Error occured, probably no INI file.") Else For $i = 1 To $PAS1[0][0] Sleep(5000) Send("& $par[$i][1] & ") Next EndIf Doesn't work
GaryFrost Posted September 3, 2005 Posted September 3, 2005 (edited) how doesn't it work? what does the ini file look like? where are you sending the data? What is this? Send("& $par[$i][1] & ") shouldn't it be? Send("& $PAS1[$i][1] & ") Edited September 3, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Mack Posted September 3, 2005 Author Posted September 3, 2005 Id needs to insert the text inserted in the .ini , and youre script also doesn't work.
therks Posted September 3, 2005 Posted September 3, 2005 (edited) Your comments don't work either...HOW doesn't it work: Do you get an error message? Are you getting that MsgBox you have coded in?SHOW us an example of the INI file: Actually copy and paste a sample of the INI you're working with and let us see it.Providing us this information will help us try the script ourselves to see if we can figure out what the problem is. Any mook can post code like this..._Totally() For $i = 0 to 25 _Awesome() Next...and then whine that it doesn't work. But we can't help them because we don't know what the _Totally() and _Awesome() functions do. Just like in your case, we can't help you because we don't know what's in your INI file. Or what errors you're getting. Perhaps you don't have the INI in the right folder? Try specifying a full path to it.And last, whether you want the $par variable or the $PAS1 variable, this piece of code won't work.Send("& $par[$i][1] & ")Putting quote marks (") around that text means it will try to actually print it exactly, giving you a string of text that says & $par[$i][1] & .Try this:Send($par[$i][1])In the future, remember, you have to help us, to help you.*Edit: Typo Edited September 3, 2005 by Saunders My AutoIt Stuff | My Github
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