Jump to content
Sign in to follow this  
ussr

pixelchecksum+1

Recommended Posts

ussr

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)

Share this post


Link to post
Share on other sites
ussr

$iCurrCheckSum = PixelChecksum(563,154, 581,165)

Share this post


Link to post
Share on other sites
czardas

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

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  

×