testingtest Posted September 15, 2007 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
BillLuvsU Posted September 15, 2007 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
testingtest Posted September 15, 2007 Author 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 Ì
Moderators SmOke_N Posted September 15, 2007 Moderators 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.
Richard Robertson Posted September 15, 2007 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.
BobK Posted September 15, 2007 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
LongBowNZ Posted September 15, 2007 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
testingtest Posted September 16, 2007 Author 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
BillLuvsU Posted September 16, 2007 Posted September 16, 2007 sall good [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
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