Jump to content
Sign in to follow this  
testingtest

Im Stuck

Recommended Posts

testingtest

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
BillLuvsU

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
testingtest

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
SmOke_N

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
Richard Robertson

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
BobK

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
LongBowNZ

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
testingtest

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
BillLuvsU

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.