Sign in to follow this  
Followers 0
LeBot

What data makes of a checksum?

5 posts in this topic

#1 ·  Posted (edited)

Hello,

I want to save a set of about 10 pixel checksums to compare to the screen when running the script.

I would like to know if there's any way i can know the "output" of a checksum so i can save it as a starting variable in a script.

If is not possible what would you recommed?

I'm not sure if i made me clear

Thanks ;)

Edited by LeBot

Share this post


Link to post
Share on other sites



Just create an image with the pixels, display it and let AutoIt calculate the checksum ;)


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Yes that would work, but is there any way I don't have to do that everytime i run the script?

And thanks for the fast reply

Share this post


Link to post
Share on other sites

Hello LeBot,

First, Welcome to the AutoIt Forums!

What ProgAndy suggested, is what your asking. In Example:

Local $checksumA = PixelChecksum(100, 100, 200, 200)
Local $checksumB = PixelChecksum(300, 300, 400, 400)

;Do something
;Do something
;Do something
If PixelChecksum(100, 100, 200, 200) = $checksumA Then
    ;Do something
    ;Do something
EndIf
;Do something
;Do something
If PixelChecksum(300, 300, 400, 400) = $checksumB Then
    ;Do something
    ;Do something
EndIf

Another suggestion, could be to create another script that will gather the initial checksum values and store them in a file, that your second script can compare against.

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites

Yes that would work, but is there any way I don't have to do that everytime i run the script?

And thanks for the fast reply

You have to do it once, output the values (e.g. ConsoleWrite) and insert them into your main script.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

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  
Followers 0