ussr Posted July 21, 2011 Posted July 21, 2011 Hi I would like to use pixelchecksum and I want to add +1 to $i. $i=1 +1 ??????? I dont know this part. if $iCurrCheckSum = $1 Then IniWrite(@ScriptDir & '\f.ini', 'numbers', $i,1) if $iCurrCheckSum = $2 Then IniWrite(@ScriptDir & '\f.ini', 'numbers', $i,2) if $iCurrCheckSum = $3 Then IniWrite(@ScriptDir & '\f.ini', 'numbers', $i,3) if $iCurrCheckSum = $4 Then IniWrite(@ScriptDir & '\f.ini', 'numbers', $i,4)
ussr Posted July 21, 2011 Author Posted July 21, 2011 $iCurrCheckSum = PixelChecksum(563,154, 581,165)
czardas Posted July 21, 2011 Posted July 21, 2011 (edited) Not sure what you're tring to do with PixelChecksum. The standard way to increase $i would be to use a For loop. For $i = 1 To 4 ; Code goes here Next Another loop solution: $i = 1 Do ; Code goes here $i += 1 Until $i = 5 Edited July 21, 2011 by czardas operator64 ArrayWorkshop
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