Sign in to follow this  
Followers 0
albertmaathuis

Get the filename of een active foxit document

7 posts in this topic

Hello,

Is there a way to retrieve the full path and filename from an active FOXIT document.

I can see in foxit reader in the general tab the full filename and the name of the document, but how do i get this in a variable?

(I found how i can retrive the information from a file, but not from an active document)

Share this post


Link to post
Share on other sites



For get the title of the active tab

$_Title = WinGetTitle ( '[CLASS:classFoxitReader]' )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
  • This only gives met the name of the document; not the fulle path.

Share this post


Link to post
Share on other sites

  • This only gives met the name of the document; not the fulle path.

Yes, as your topic title ask.

If there is only 1 tab opened in foxit you can try to get the command line of foxit and get full path.


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Ok, but how do I do thet?

(Excuse me if this is evident, but I don't know how)

Share this post


Link to post
Share on other sites

search for _WinAPI_GetProcessCommandLine


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Thx Wakillon, I had to download the latest version of autoIT v3.3.8.1 because of the constants, but now i can find the info I need!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0