Jump to content
Sign in to follow this  
testingtest

Im Stuck

Recommended Posts

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?

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

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

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  

×
×
  • Create New...