#cp.ui.axutils.match

Contains common hs.axuielement matching functions.


#API Overview

Functions - API calls offered directly by the extension


#API Documentation

#Functions

Signaturecp.ui.axutils.match.emptyList(element) -> function
TypeFunction
DescriptionReturns a match function that will return true if element is an empty list, or has no children.
Parameters
  • element - The axuielement to check.
Returns
  • true if the element is an empty list.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 825

Signaturecp.ui.axutils.match.exactly(value) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement matches the provided value exactly.
Parameters
  • value - The value to check for.
Returns
  • function(element) -> boolean that checks the value matches exactly.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 810

Signaturecp.ui.axutils.match.isAbove(value) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement is above the provided value axuielement.
Parameters
  • value - The axuielement to check.
Returns
  • A function returning true if the element is above the provided value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 884

Signaturecp.ui.axutils.match.isBelow(value) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement is below the provided value axuielement.
Parameters
  • value - The axuielement to check.
Returns
  • A function returning true if the element is below the provided value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 861

Signaturecp.ui.axutils.match.isLeftOf(value) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement is left of the provided value axuielement.
Parameters
  • value - The axuielement to check.
Returns
  • A function returning true if the element is left of the provided value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 907

Signaturecp.ui.axutils.match.isRightOf(value) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement is right of the provided value axuielement.
Parameters
  • value - The axuielement to check.
Returns
  • A function returning true if the element is right of the provided value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 930

Signaturecp.ui.axutils.match.role(roleName) -> function
TypeFunction
DescriptionReturns a match function that will return true if the axuielement has the specified AXRole.
Parameters
  • roleName - The role to check for.
Returns
  • function(element) -> boolean that checks the AXRole is roleName
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 795