Here's what I mean:
I have health bar like that
It has diffrent shade of red color in Y axis and same pixel red colors in X axis, what i want to do is to cut it in parts like this: and check if for example in 7th (70% of all bar) part there is any shade of red color. If it is missing then 'bla bla'
What is the smartest way to find the start of health bar and the end of it? Depending for example of shades of red color?
Of course I can and I did it by get coordinates of exactly 7 part and pixelgetcolor and I can do it, but I'm trying to improve my script and then add some gui to type for example "type % of health bar to happen something [...]" And what is important that health bar can be in diffrent position based on screen resolution etc.
My script for now is like this, but I don't think it could be helpful for this request
Code: Select all
ImageSearch, hXX, hYY, 0, 0, A_ScreenWidth, A_ScreenHeight, *healhInfo.PNG
PixelGetColor, Check25, % hXX +55,% hYY +30, RGB
if (Check25 != 0xC234234) {
}