|
Post by zenkrye on Feb 25, 2022 17:04:45 GMT
getColor(PSMRL [, seconds]) - If I use this to get the color of a region, I am assuming it returns me the color of the single pixel at the middle of the region. And if I wanted to find the level of an health bar, like 25% then I would need to find a pixel location for that 25% in the health bar? If anyone has an example of how to find the percentage of tha health bar that would be greatly appreciated.
find() - I am using this to find an items. The problem is if it does not find the .png it throws an exception. I see there are findAllNoFindException() and regionFindAllNoFindException() that will not throw an exception but not one for finding and returning a single value. What would be the best way to a single record returned from regionFindAllNoFindException()?
|
|
|
Post by AnkuLua on Feb 25, 2022 22:34:18 GMT
1. getColor(Location(reg:getX() + reg:getW() * percent , reg:getY()) for horizontal bar.
2. exists() is the answer.
|
|