Jump to content

pixelchecksum+1


Recommended Posts

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)

Link to comment
Share on other sites

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 by czardas
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...