Skip to main content

20 docs tagged with "Screen"

View all tags

Screen

The module has similar functionality with Region module, except it uses full device width and height

Screen:click()

To perform parameterize click behaviour using MatchResult

Screen:clickAll()

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

Screen:exist()

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

Screen:existClick()

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

Screen:existClickAll()

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

Screen:find()

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

Screen:findAll()

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

Screen: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

Screen: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

Screen:getText()

This method performs OCR in device screen and return the concatenated text

Screen:screenshot()

Take a screenshot the entire device screen and save it to /data/data/com.androidmacro/images/$macroId/$fileName

Screen:wait()

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

Screen:waitVanish()

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