Jump to content

Recommended Posts

Posted (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?

  1. It searches the windows program (bluestacks) for specific images. e.g. the dragon in the attached images.
  2. 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.bmp

z8YD3tbig.bmp

z8YD3t.bmp

R652ER.bmp

Edited by astranberg
details
  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...