Click here to Skip to main content
15,889,442 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an applicaiton which monitors other applicaiton like notifying the users about their state changes etc.
Is there a way by which i can get the coordinates of the components (like textfields, labels) of a wpf application at the monitoring applciaiton?
Posted
Updated 29-Apr-14 3:26am
v2
Comments
Sergey Alexandrovich Kryukov 29-Apr-14 12:14pm    
It really sounds like you planned to do something bad... :-)
—SA

1 solution

No, not in general case. Maybe only through image recognition. In particular, if the application to be monitored is WPF, it does not have windowed control at all, so you cannot use, say, raw Windows API to find all children and their coordinate. And, in any technology, it is possible to build "light-weight" control which don't use any common API at all.

Generally, communication with external processes not specifically designed for such collaboration, is just not a good task. Processes are well isolated; they are executed in separate address spaces. The fact some works in this direction is done simply means that people are abusing technology, not using adequate software, by one or another reason. If, for example, you got such requirement from your company, it means that your company or its part is a looser (or a potential loser) trying to do bad business.

—SA
 
Share this answer
 

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