Skip to main content

20 docs tagged with "Region"

View all tags

Region()

The core module for detecting and performing ui automation in a region of interest which is a part of screen device

Region():clickAll()

To perform image/text detection and click it's match coordinate in bulk manner

Region():exist()

To check if match exist in the region, if match is found then this method returns true else false

Region():existClick()

To perform image/text detection and click it's match coordinate, if match is found then this method returns true

Region():existClickAll()

To perform image/text detection and click it's match coordinate, if match is found then this method returns true

Region():find()

To perform image or text search in the region, if the image or text is found return the MatchResult else return nil

Region():findAll()

To perform image or text search in bulk manner and return a list of MatchResult

Region():getColor()

To get color pixel in certain coordinate, later this color can be used to compare if color has similar score, this is useful to do color detection

Region():getColors()

To get color pixel in multiple coordinates at the same time, later these colors can be used to compare if color has similar score, this is useful to do color detection

Region():getText()

This method performs OCR in region of interest and return the concatenated text

Region():screenshot()

Take a screenshot of region and save it to /data/data/com.androidmacro/images/$macroId/$fileName

Region():wait()

Wait until template appear in the region, if timeout reached this method will throw an error

Region():waitVanish()

Wait until template disappear or vanish in the region, if timeout reached this method will throw an error