ReFran Posted March 30, 2005 Share Posted March 30, 2005 Hello, I want to get the path to a file executed in the active window. I know how to read the filename from title (Acrobat Reader - [Test.pdf]), but I need the full pathname of the file in the active Window (like: c:\documents\Reader\Test.pdf). I tried also WMI. I got all information of the running Acrobat process, but not the path. Is it somehow possible - without using an extra DLL? Thanks, Reinhard Link to comment Share on other sites More sharing options...
Westi Posted March 30, 2005 Share Posted March 30, 2005 Hello, try -File -Document Properties For the german version of Reader 7.x : WinWaitActive ( "Adobe Reader - " ) Send ("^d") WinWaitActive ( "Dokumenteigenschaften" ) $text = WinGetText ( "Dokumenteigenschaften" ) Send ("{ENTER}") MsgBox ( 0, "All i can get:", $text) Link to comment Share on other sites More sharing options...
ReFran Posted March 30, 2005 Author Share Posted March 30, 2005 Hello,try-File-Document PropertiesNot really what I'm awaited, but real good. I didn't remember to this menuitem. I write/wrote a script that make fillable PDF-forms saveable with Reader only. Knowing the path makes it more flexible.Because I have already to read text from a window/message box (field-names and field-values) I'm furtheron interested in a more direct solution. I'm realy astonished that it seems, I don't can get it via AutoIT or WMI.Anyway, thanks Westi, nice idea and easy working solution.Reinhard Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now