Answer the question
In order to leave comments, you need to log in
How to get text from someone else's window using WinAPI in c#?
Hello!
In general, there is a certain "foreign" process that periodically "disappears" (ceases to perform its functions) due to the fact that it loses contact with its own licensing server. At the same time, the process does not crash, but only in the service window (in the label in the status bar, as I understand it), the text changes from conditionally [ok] to conditionally [not ok]. The only way to deal with this ailment is to restart the process until the connection to the licensing service is restored and the inscription in this label becomes [ok]. Of course, I want to restart it automatically upon receiving the [not ok] signal, because during the downtime of this process, users suffer and money is lost.
Tell me, please, how can I find the identifier of this label in a foreign window using WinAPI in c# and get its text?
I don’t know what the process is written on, but it’s definitely a Windows application)
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question