testingtest Posted September 15, 2007 Share Posted September 15, 2007 (edited) I need help on something like this please Global $keys[999] _Gen Func _Gen() $Keys[1] = "hi" $Keys[2] = "test" $Number = 0 $Num = $Number +1 $i = 1 Do IniWrite("Keys.ini" , "Keys" , $Num , $Keys[$i]) $i = $i + 1 Until $i = 3 EndFunc Edited September 15, 2007 by testingtest Link to comment Share on other sites More sharing options...
BillLuvsU Posted September 15, 2007 Share Posted September 15, 2007 Ummm, what are you trying to do? [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
testingtest Posted September 15, 2007 Author Share Posted September 15, 2007 Ummm, what are you trying to do? While it should write a ini like this here are my keys $Keys[1] = "hi" $Keys[2] = "test"oÝ÷ Ú«z+&Ê{¦mêÚºÚ"µÍÌÍÓ[XHÌÍÓ[HH ÌÍÓ[X Ì Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 15, 2007 Moderators Share Posted September 15, 2007 You'd be better off asking the homeless on the secrets to getting and staying rich. Your question to them would make as much sense as your question to us. 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 More sharing options...
Richard Robertson Posted September 15, 2007 Share Posted September 15, 2007 Etc doesn't make sense because "hi" and "test" do not follow a pattern. If you had a reason to do this, we could help. Link to comment Share on other sites More sharing options...
BobK Posted September 15, 2007 Share Posted September 15, 2007 You just need a $num=$num+1 in your loop; Global $keys[999] _Gen() Func _Gen() $Keys[1] = "hi" $Keys[2] = "test" $Number = 0 $Num = 1 $i = 1 Do IniWrite("Keys.ini" , "Keys" , $Num , $Keys[$i]) $i = $i + 1 $Num = $Num +1 Until $i = 3 EndFunc Link to comment Share on other sites More sharing options...
LongBowNZ Posted September 15, 2007 Share Posted September 15, 2007 Global $keys[999] _Gen() Func _Gen() $Keys[1] = "hi" $Keys[2] = "test" $Keys[3] = "bye" $i = 1 Do IniWrite("Keys.ini", "Keys", $i, $Keys[$i]) $i = $i + 1 Until $i = 4 EndFunc Link to comment Share on other sites More sharing options...
testingtest Posted September 16, 2007 Author Share Posted September 16, 2007 Aw I feel stupid but I never really did a until loop. Thanks guys was it really hard for some of you to understand if so sorry ill try better next time Link to comment Share on other sites More sharing options...
BillLuvsU Posted September 16, 2007 Share Posted September 16, 2007 sall good [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
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