pl4y0n Posted April 20, 2011 Posted April 20, 2011 #include <array.au3> local $text = "text" local $i for $i = 100 to 0 - 1 $section = $text[$i] IniWrite("C:\Documents and Settings\Alex\My Documents\Autolt\myfile.ini", $section , "key") next sleep(500) ShellExecute("C:\Documents and Settings\Alex\My Documents\Autolt\myfile.ini") i get myfile.ini empty what's wrong?
Developers Jos Posted April 20, 2011 Developers Posted April 20, 2011 what's wrong?Have you looked at the helpfile page for IniWrite() and the number of parameters?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
pl4y0n Posted April 21, 2011 Author Posted April 21, 2011 yes i had but firt i used IniWriteSection and dosen't wrok too
JoHanatCent Posted April 21, 2011 Posted April 21, 2011 (edited) yes i had but firt i used IniWriteSection and dosen't wrok too Jos was right U missed some parameters. Try: #include <array.au3> Local $text = "text" Local $i For $i = 100 To 0 Step -1 $section = $text & $i; <<< ===== You also tried using an Array. Try this instead or Declare the array first! IniWrite("myfile.ini", $section, "key", $i); <<< ==== parameters Next Sleep(500) ShellExecute("myfile.ini") == Removed duplicate == Edited April 21, 2011 by JoHanatCent
pl4y0n Posted April 21, 2011 Author Posted April 21, 2011 Jos was right U missed some parameters. Try: #include <array.au3> Local $text = "text" Local $i For $i = 100 To 0 Step -1 $section = $text & $i; <<< ===== You also tried using an Array. Try this instead or Declare the array first! IniWrite("myfile.ini", $section, "key", $i); <<< ==== parameters Next Sleep(500) ShellExecute("myfile.ini") == Removed duplicate == For $i = 100 To 0 Step -1 = For $i = 100 To 0 -1 ???? anyway thx for help!!
JoHanatCent Posted April 21, 2011 Posted April 21, 2011 For $i = 100 To 0 Step -1 = For $i = 100 To 0 -1 ????R U Shure?If I leave the "step" out I get absolute nothing!
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