Jump to content
Sign in to follow this  
venome

PixelChecksum - different sum each time for same unchanged region

Recommended Posts

venome

This is my code:

#include <ImageSearch.au3>
Sleep(1000)
Local $x3, $y3
 $result4 = _ImageSearch("icoc/N.png", 1, $x3, $y3, 60) ;Finds N letter on minimap in game
 $checksum = PixelChecksum($x3+5, $x3-5, $x3+60, $y3+8) ;checks pixel amount in the region near N letter (ingame)
 MsgBox(0,"",$checksum)
 $checksum2 = PixelChecksum($x3-1000, $x3, $x3-950, $y3)  ;checks pixel amount in the region somewhere outside game
 MsgBox(0,"",$checksum2)

The problem is $checksum is always different (huge differences in reported amount each time). What's more selected region is game user interface so I don't think some pixels are changing. $checksum2 is working correctly (region outside game for example browser or desktop) - reports always same check sum for unchanged area.

Anybody has idea what can be reason of this and solution for it?

Edited by venome

Share this post


Link to post
Share on other sites
Melba23

venome,

 

What's more selected region is game user interface

Unfortunately you appear not to have read the Forum rules since you have been here. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×