Cached Region
Cached region, this variant of region will capture the region on creation and cache it, capture will always return this cached image. Sub-regions created from this region will also use this cached image for their operations
Constructors
Functions
Captures the image of the region
Clicks the template if it exists, while a condition holds true For more complex operations please use the devices respective IInput
Clicks this region, while a condition holds true For more complex operations please use the devices respective IInput
General compare function
Checks if template doesn't exist on screen, useful if you don't need the result of the find operation. Inverse of has
Finds the best match for the given template in the current region
Finds the best <count> matches for the given template in the current region
Gets the last capture of this region
Gets the last screen capture of the region
Checks if template exists on screen, useful if you don't need the result of the find operation. Inverse of doesntHave
Checks if this region is the device screen or a copy of it
Maps a ITemplateMatcher.FindResult onto this region
Maps a rectangle on to this region
Waits until the given template vanishes off-screen. This is the suspending version, use waitDoesntHaveBlocking if blocking operation is needed. Inverse of waitHas
Waits until the given template shows up on screen. This is the suspending version, use waitHasBlocking if blocking operation is needed. Inverse of waitDoesntHave
Properties
Template matcher that will be used for find operations, can be overridden with custom matcher, otherwise Region.DEFAULT_MATCHER will be used
Extensions
Crops and returns a new rect that fits in the other rect
Convenience value, equivalent to Rectangle.x
Convenience value, equivalent to Rectangle.x + Rectangle.width
Convenience value, equivalent to Rectangle.y
Convenience value, equivalent to Rectangle.y + Rectangle.height