How to read out text present on external application dialog box or window in C#
<p>I want to required file name of my currently opened document application(like pdf,docx,xls etc) in order to automatically detect the password from my access database.
But when i clicked on my external application the "password" window gets opened since my file application is passwords protected, still file application not opened because i have not entered password still, i want to supply this password as auto detection from database.
For this project i have got the title of currently active window i.e. password but i want to know the which file name, of application.</p>

<p>The filename with extension is present on external application(pdf,docx,xls)"enter password" dialog box or window.
So my question is that is there any way to read out this "filename+extension " present on "enter password" dialog box of external application(like pdf,docx,xls etc). </p>
