LeBot Posted April 29, 2012 Share Posted April 29, 2012 (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 April 29, 2012 by LeBot Link to comment Share on other sites More sharing options...
ProgAndy Posted April 29, 2012 Share Posted April 29, 2012 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 Link to comment Share on other sites More sharing options...
LeBot Posted April 29, 2012 Author Share Posted April 29, 2012 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 Link to comment Share on other sites More sharing options...
Realm Posted April 29, 2012 Share Posted April 29, 2012 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. Link to comment Share on other sites More sharing options...
ProgAndy Posted April 29, 2012 Share Posted April 29, 2012 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 replyYou 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 Link to comment Share on other sites More sharing options...
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