Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In C# how can I read the caption in each browser tab, without changing the active tab focus? A short code sample would help greatly.

Background
I work for a health care organization, and I maintain a small application that reads the title bars of several custom applications to create a list of which patients are open on the device. Then I display alerts, warnings or other helpful information.

One of the apps I scan is moving to a web browser (both Edge & Chrome are supported) and now I'll need to read through all of the browser tabs to find what I need.

What I have tried:

I already tried .Net UIAutomation but that is out of the question because it requires changing focus by first activating each of the tabs. Manipulation of the desktop UI would be a disruption.

GetProcesses() only sees the tabs if the browser window is not minimized.
Posted
Updated 20-Nov-23 17:22pm
v8

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900