Best approach to scroll + extract all rows from a data grid inside a remote desktop (LogMeIn) session without duplicates?

I’m automating data extraction from a scrollable data grid inside a third-party application accessed via a LogMeIn remote session. Since the actual application isn’t running locally, there’s no accessible UI Automation tree — Find Children, Extract Table Data, and UI Explorer all fail to see individual grid elements; only the outer remote-session window is visible to UI Automation.

The grid can have 20–100+ rows, more than fit on one screen, so I need to scroll to capture everything.

My current plan:

  • Screenshot + OCR each visible “page” of the grid
  • Scroll down by a fixed increment (intentionally under-scrolling by ~2 rows) to guarantee overlap between captures
  • Compare each new capture’s first few rows against the previous capture’s last few rows to detect and trim duplicate/overlapping rows before merging

Questions:

  1. Is there a more reliable built-in UiPath pattern for this (e.g., something in Screen Scraping, or a way to detect “reached bottom of scroll” more robustly than pixel/image diffing)?
  2. Any recommended way to make the scroll increment more precise/consistent than Send Hotkey (Page Down) — e.g., does anyone use scrollbar position/thumb tracking instead?
  3. Has anyone dealt with row de-duplication in a similar “screenshot + OCR + scroll” pipeline, and if so, what key/matching strategy worked best when the data itself has legitimately repeating values across rows?

Context: target application is a legacy Windows/.NET grid control, accessed only via LogMeIn (no local Robot access to the actual app), so OCR-based extraction is the only viable path — UI Automation is fully unavailable in this setup.

Hi @Rubika1 ,
You can try with these steps:

  1. Use Screen Scraping/OCR to capture all visible rows.
  2. Scroll using a fixed mouse wheel amount or keyboard action (Page Down/Arrow Down), keeping a small overlap (1-2 rows) between captures.
  3. Extract the next screen and compare the first rows of the new capture with the last rows of the previous capture to remove duplicates.
  4. Store all rows in a DataTable and use a unique column (ID, Name+Date, etc.) for de-duplication. If no unique key exists, compare the full row text.
  5. To detect the end of the grid, check whether the newly captured OCR text is identical to the previous capture for 2-3 consecutive scrolls. This is usually more reliable than image comparison.
  6. If the scrollbar is visible, you can use Computer Vision to monitor the scrollbar thumb position, but OCR + repeated-text detection is generally the most stable solution in remote sessions.
    Thanks

Hi @Rubika1

Since UI Automation is completely unavailable through LogMeIn, I think the Screenshot + OCR + controlled scrolling approach is the right direction.

For reliability, I would suggest:

  • Use a small overlapping scroll of 1–3 rows instead of relying only on Page Down.

  • After each OCR capture, normalize the text by removing extra spaces/line breaks and correcting common OCR issues.

  • For deduplication, use a stable unique column such as ID, Reference Number, or Transaction ID if available. If no unique column exists, combine 2–3 columns to create a row key.

  • To detect the bottom, compare the newly extracted rows with the previous capture. If the same rows continue appearing and the screen/scroll position no longer changes, stop the loop.

  • Add a maximum iteration counter as a safety mechanism to avoid an infinite loop.

So the overall pattern can be:

Screenshot → OCR → Parse rows → Normalize → Deduplicate → Scroll → Repeat → Stop when no new rows are detected.

For a legacy application accessed only through LogMeIn, this should be more dependable than trying to use Extract Table Data or Find Children when the underlying controls are not exposed.

Hi @Rubika1

Since the app is accessed through LogMeIn and UiPath cannot see the actual grid elements, I think Screenshot + OCR is the best option here.

For scrolling, you can try mouse wheel with a fixed number of scrolls instead of Page Down, as it may be more consistent.

For duplicates, compare 2–3 columns together rather than a single value, since some values may repeat.

For detecting the bottom, if two consecutive OCR captures return the same rows, you can treat it as the end of the grid.