picorico2 Posted February 6, 2020 Share Posted February 6, 2020 (edited) 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 February 6, 2020 by picorico2 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 6, 2020 Moderators Share Posted February 6, 2020 (edited) 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): Alternatively, if you have a large number of PDFs open, you could use WinList() and then filter by the title found. Edited February 6, 2020 by JLogan3o13 picorico2 1 "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 More sharing options...
picorico2 Posted February 7, 2020 Author Share Posted February 7, 2020 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 More sharing options...
Bert Posted February 7, 2020 Share Posted February 7, 2020 look here: https://www.autoitscript.com/autoit3/docs/intro/windowsbasic.htm This will help The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
picorico2 Posted February 27, 2020 Author Share Posted February 27, 2020 Thank you, I´ll dive into it. 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