Loop UI Objects


Loop through all UI objects that meet the conditions specified based on the path or attribute.

For information on how to locate UI objects, please refer to "Find UI object".

Parameters

  • Loop Mode can be set to the following:

    • Normal Loops through all UI objects that meet the conditions specified.
    • All direct children of specified element First finds the UI object that meets the conditions specified, then loops through all its direct children elements.
    • All Descendants of Specified Element First finds the UI object that meets the conditions specified, then loops through all its descendant elements.

  • Type must be  Specifies a type name that is only applicable when looping through the direct children ordescendants of the specified element. It allows you to extract certain types of elements.

  • Loop only displayed elements Specifies whether to ignore elements that are not displayed. Note that some elements that are off-screen or outside the window may still be in a displayed state.

  • Loop range Specifies the number of elements to read when multiple elements meet the conditions specified.

  • How to get UI object text Specifies how to read the content of the UI object. If "Auto Detection" is selected, the Macro Player will automatically compare the name and content of the interface element and return the one with more content.

  • Populate variable with content Specifies the variable name to save the content to.

More

  • For options on how to locate UI objects, please refer to "Find UI Object".
  • For options on how to locate the target window, please refer to "Which Window".