pl4y0n 0 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? Share this post Link to post Share on other sites
Jos 2,214 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. Share this post Link to post Share on other sites
pl4y0n 0 Posted April 21, 2011 yes i had but firt i used IniWriteSection and dosen't wrok too Share this post Link to post Share on other sites
JoHanatCent 13 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 Share this post Link to post Share on other sites
pl4y0n 0 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!! Share this post Link to post Share on other sites
JoHanatCent 13 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! Share this post Link to post Share on other sites