Jump to content
Sign in to follow this  
Stengray

Store results of pixelchecksum in txt or ini file then recall them in a script

Recommended Posts

Stengray

I am not sure if I am posting this in the correct location or not. However, I would like to take a pixelchecksum output and store it in an ini or txt file, then recall in in other scripts. Is this possible, and what is the recommended method?

Thanks in advance!

Share this post


Link to post
Share on other sites
Andreik

Hello and welcome to AutoIt Forum. Here is a small example with comments:

; Get PixelChecsum for a region
$Checksum = PixelChecksum(10,10,15,15)
; Display value
MsgBox(0,'',$Checksum)
; Write checksum to ini (in script directory)
IniWrite(@ScriptDir & '\myini.ini','Checksum','PixelChecksum',$Checksum)

; Read value from ini
$ReadChecksum = IniRead(@ScriptDir & '\myini.ini','Checksum','PixelChecksum','')
; Display read checksum
MsgBox(0,'',$ReadChecksum)

 


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Stengray

Thank you Andreik, that is exactly what I was looking for!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.