astranberg Posted December 25, 2018 Posted December 25, 2018 (edited) Hello friends! I am using the wonderful findbmp script made by @junkew here: The findbmp script works perfectly and I am using the c16RGBPartialMatch option, which is the least restrictive. What does my script do? It searches the windows program (bluestacks) for specific images. e.g. the dragon in the attached images. In order to make image search faster, I don't search for the entire image (the whole dragon e.g. R652ERbig.bmp), but I search for a small 2x10px snippet of the dragon (e.g. R952ER.bmp). So if the script works then what's my problem? Well, the program I am automating (bluestacks android) does not have great resolution, and therefore what I assume is a perfect resolution original picture is downscaled to be displayed in the program. This means that each time the picture is displayed in the program, you get slightly different pixels!! For example, if you search R652ER.bmp within R652ERbig.bmp, you get a match! If you search z8YD3t within z8YD3tbig you get a match! However, if you search R652ER within z8YD3tbig you don't get a match However, if you search z8YD3t within R652ERbig you don't get a match Even though R652ERbig and z8YD3tbig are obviously the same dragon (when you look at it grossly, not as a PC does pixel by pixel). And I am stuck finding a solution for it. I cannot reliably find the dragon within Bluestacks because it appears slightly different each time. Does anybody have an idea? Thanks, ~bub R652ERbig.bmpFetching info... z8YD3tbig.bmpFetching info... z8YD3t.bmpFetching info... R652ER.bmpFetching info... Edited December 25, 2018 by astranberg details
Moderators Melba23 Posted December 25, 2018 Moderators Posted December 25, 2018 astranberg, It looks to me as if you are still trying to automate BlueStacks games - why else would you want to identify a dragon? As all yoru previous threads have been locked, I wonder why you persist - but it seems you are unable or unwilling to follow our Forum rules which specifically prohibit game automation. You have used up all the flex we are prepared to show you - a further game-related post from you will result in your removal from the community. 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: Reveal hidden contents 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
Recommended Posts