ReFran Posted March 30, 2005 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
Westi Posted March 30, 2005 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)
ReFran Posted March 30, 2005 Author 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
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