Sign in to follow this  
Followers 0
testingtest

Im Stuck

9 posts in this topic

#1 ·  Posted (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 by testingtest

Share this post


Link to post
Share on other sites



Ummm, what are you trying to do?


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

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
Ì

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

sall good :)


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

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