Jump to content

Trying to understand Winactivate


Recommended Posts

Hi there!

I a noob. I´m tring to open, move and resize a PDF document window but I can´t bring a windows to the  front using Winactivate, and since every document has a different name, I don´t fully undestand the "title" and "text" options.

Pls help

 

Here is my code:

 

WinActivate ("[CLASS:Afx:00007FF793120000:8:0000000000010003:0000000000000000:00000000018D025D]")

WinMove ("", "Nitro Pro", 28, 0,  1340, 858)

 

 

 

Edited by picorico2
Link to comment
Share on other sites

  • Moderators

So if you open the PDF and then use the AutoIt Window Info tool (located in the same directory where you installed AutoIt), it should give you the title:

For example (I am using PDFXchange Viewer for PDFs):

image.png.889343530216b210e6f8b41dd77af6c3.png

 

Alternatively, if you have a large number of PDFs open, you could use WinList() and then filter by the title found.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Thank you JLogan3o13   for the early response,

 

Can you please give me an example how to use it? What I want is to activate a PDF window so I can move it to a certain position,  ej.   the thing is that it´s going to have a different name file everytime it opens. The code is the same as above. In the meantime I´ll try to play with Winlist. :)

 

Link to comment
Share on other sites

  • 3 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...