Servant Posted April 5, 2014 Posted April 5, 2014 (edited) For example, I have this code to get the object of an opened Microsoft Word document: #include <Word.au3> Global $oWord = _Word_Create() Global $oDoc = _Word_DocGet($oWord, 1) Now my question is, how can I get the current file name of that opened Microsoft Word document? Edited April 5, 2014 by Servant http://developingsites.blogspot.com
Solution Servant Posted April 5, 2014 Author Solution Posted April 5, 2014 I found it! As simple as: $oDoc.Name http://developingsites.blogspot.com
jguinch Posted April 5, 2014 Posted April 5, 2014 And $oDoc.FullName for the full path... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
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