How do you automate a desktop or Citrix app that has no API?
First ask the vendor for an API, an import or an export. If there isn't one, automate through the screen and check each save with a second read of the record. Over Citrix or remote desktop the tool sees only pixels, so expect more stops on look-alike characters. We qualify each workflow on your own setup first.
Updated 2026-11-30
The options, in order
- Ask the vendor for an API or an import first, because it skips the screen entirely.
- Next, look for a database or file interface that the vendor supports, such as a scheduled import.
- Where the app exposes its controls, use UI Automation on the desktop itself, which is more stable than reading pixels.
- Otherwise, use screen automation over Citrix or remote desktop, which reads pixels, and check each save with a second read of the record.
What changes when the screen is only pixels
Inside Citrix or remote desktop, an automation gets an image of the screen and can't read field names. It has to find fields and values by how they look, which is harder when characters look alike. On pixel-only screens, the right-record check stops whenever the right patient's own record number has look-alike characters, such as O and 0. On our test sets, 47 to 61 in 100 correct-patient checks ended in one of these extra stops, and none of them ended in a wrong entry (re-measured 17 Oct 2026).
A confirmed list of the system's record numbers removes most of those stops. We tested this with synthetic data on a rendered record list, across 280 clicks where the neighboring row wasn't a look-alike of the row being clicked.
| Setup | Clicks that stopped, of 280 |
|---|---|
| Without the confirmed list | 176 |
| With the confirmed list | 3 |
What we've tested
| Setup | Result |
|---|---|
| Our own Windows app, through UI Automation | 3 of 3 confirmed by a database read |
| Our scheduling app over a real remote-desktop connection (FreeRDP) | 3 of 3 confirmed; wrong-patient and changed-screen runs stopped |
| A real Windows 11 computer over remote desktop (RDP) | 3 of 3 |
| A macOS app, through the macOS accessibility interface | 3 of 3 on a synthetic test app |
| A stand-in that imitates Citrix conditions | 3 normal runs checked; 3 changed-screen runs stopped |
All of these runs used synthetic records. We qualify each workflow on your own system before it touches a real record.
Check every save
On 4 real upstream app upgrades (N = 60), unwrapped gpt-5.4 reported 15.0% (3/20) false completions and ASI programmatic skills silently cached 18.3% no-op runs, while OpenAdapt verified 42 of 60 runs and stopped the other 18 for review. See the full clean-room breakdown.
Related: OpenAdapt vs Power Automate · API or screen automation? · the right-record check
Sources & cryptographic provenance (5 citations)
- OpenAdapt on our own Windows test app (UI Automation), 17 Jul 2026: 3 of 3 runs with saves confirmed by a database read; missing and ambiguous targets refused 3 of 3.
- OpenAdapt remote-desktop test, 30 Jul 2026: a fictional clinic scheduling app over a real remote-desktop connection (FreeRDP, not Citrix), synthetic patients. 3 of 3 bookings confirmed by a read-only database query; 3 of 3 wrong-patient runs stopped with 0 rows written; 3 of 3 runs on a changed screen stopped. 0 AI model calls.
- OpenAdapt surfaces, openadapt-flow 2.2.0: remote desktop (pixels only) into a real Windows 11 computer, 3 of 3 trials; a native macOS app through the Accessibility interface (TextEdit, synthetic), 3 of 3 trials.
- OpenAdapt look-alike test set (synthetic rows), 2026: 5 of 5 look-alike patients stopped; of the 2 control cases, the right patient was let through and a plainly different patient was stopped. On pixel-only screens the check stops whenever the right patient's own record number has look-alike characters (O and 0, l and 1); on our test corpora that was 47 to 61 in 100 correct-patient checks, re-measured 17 Oct 2026 (IDENTITY_EVIDENCE.md). With a confirmed list of the system's record numbers (openadapt-flow 2.2.0), those stops on a rendered record list fell from 176 to 3 in 280 clicks whose neighboring row wasn't a look-alike twin (KNOWN_IDS.md).
- Clean-room 4-app real-upgrade UI-drift study (Gitea, Vikunja, Memos, Mealie; N = 60; 100-run amortized): OpenAdapt compiled + verified self-heal verified 42 of 60 runs and stopped 18 for review, with signed Ed25519 receipts on all 60. Silent errors in the other arms: 18.3% ASI programmatic synthesis (11/60), 15.0% unwrapped gpt-5.4 (3/20), and 3.3% Stagehand-style unverified self-heal (2/60, with 43 verified).
See it on your process
Bring a task your team types every day. We'll tell you whether it fits and what a test on your own system would cover.