venome Posted November 5, 2013 Share Posted November 5, 2013 (edited) 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 November 5, 2013 by venome Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 5, 2013 Moderators Share Posted November 5, 2013 venome, What's more selected region is game user interfaceUnfortunately 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. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts