AutoInput Sorty UI Query Element ID with Data

Discussion in 'AutoApps' started by JohnnyPicnic, Jul 28, 2020.

  1. JohnnyPicnic

    JohnnyPicnic New Member

    Joined:
    Jul 27, 2020
    Messages:
    4
    Likes Received:
    0
    Does anyone know how to re arrange this output so that the data from the element is placed under the element ID?
    I've attached my task.
    Here's the output I've got:
    Code (Text):
    APP NAME
    Cub Cadet XR 2.0

    APP PACKAGE
    com.cubcadet.app

    TEXT ELEMENTS - (22 TOTAL)
    RC
    43%
    SCHEDULE
    Mow
    now
    Stop
    51:00
    Help Center
    Menu
    Schedule
    History
    Manual
    Schedule off
    OFF
    Previous operation
    ---
    --- --
    --:--
    Next operation
    ---
    --- --
    --:--
    I'm mowing :) Yeah!

    ELEMENT ID's - (22 TOTAL)
    com.cubcadet.app:id/robot_name_tv
    com.cubcadet.app:id/battery_percentage_display
    com.cubcadet.app:id/dashboard_toggle_text
    com.cubcadet.app:id/arc
    com.cubcadet.app:id/dashboard_start_button_text
    com.cubcadet.app:id/mow_duration
    com.cubcadet.app:id/tv_menu_text
    com.cubcadet.app:id/tv_menu_text
    com.cubcadet.app:id/tv_menu_text
    com.cubcadet.app:id/tv_menu_text
    com.cubcadet.app:id/tv_menu_text
    com.cubcadet.app:id/dashboard_toggle
    com.cubcadet.app:id/custom_switch_toggle_text_off
    com.cubcadet.app:id/dashboard_next_operation_text_top_title2
    com.cubcadet.app:id/dashboard_next_operation_text_day2
    com.cubcadet.app:id/dashboard_next_operation_text_top_date2
    com.cubcadet.app:id/dashboard_next_operation_text_t...
    And this is what I'd like:

    Code (Text):
    APP NAME
    Cub Cadet XR 2.0

    APP PACKAGE
    com.cubcadet.app

    ELEMENT ID's - (22 TOTAL)
    com.cubcadet.app:id/robot_name_tv
    RC
    com.cubcadet.app:id/battery_percentage_display
    43%
    com.cubcadet.app:id/dashboard_toggle_text
    SCHEDULE
    com.cubcadet.app:id/arc
    Mow
     

    Attached Files:

  2. JohnnyPicnic

    JohnnyPicnic New Member

    Joined:
    Jul 27, 2020
    Messages:
    4
    Likes Received:
    0
    Or is there a way to just grab individual elements by the ID?
    Sometimes there are more or less ID's on the screen so the order can change.
    Is there a way to just grab com.cubcadet.app:id/battery_percentage_display
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,472
    Likes Received:
    796
    Do a for loop based on the number of items in the array, and then on each iteration get the same index on both the ids and text arrays :) Let me know if you need help with that.
     
: ui query

Share This Page