Mechaflash Posted July 5, 2012 Share Posted July 5, 2012 (edited) Pulling up some PDF reports using the Foxit Reader IE plugin. How would I make the application wait for the plugin to finish loading before moving onto the next command? _IELoadWait() doesn't see the plugin as being IE so it doesn't wait as one would think. Note: The embedded plugin does have a generic object-name "plugin". If that helps at all =/ EDIT: Changed title and some wording to specify "AFTER" the plugin is done loading. Edited July 6, 2012 by mechaflash213 Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Mechaflash Posted July 6, 2012 Author Share Posted July 6, 2012 24 hour bump Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Blue_Drache Posted July 6, 2012 Share Posted July 6, 2012 Does the title of the IE window change when it's loaded? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Mechaflash Posted July 6, 2012 Author Share Posted July 6, 2012 It does change to specify it's loaded a pdf plugin. However, it doesn't change between when it starts to load the PDF and when it finishes loading the PDF. =( Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 6, 2012 Moderators Share Posted July 6, 2012 Maybe I am misunderstanding, but if the title changes could you not change your IELoadWait() to WinWaitActive? "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...
Mechaflash Posted July 6, 2012 Author Share Posted July 6, 2012 I'm not waiting for the window to become active, I'm waiting for the plugin to finish loading the PDF document. The problem I'm running into is that I don't know of a way to target the plugin for something similar to _IELoadWait() so that I perform an action after the plugin is finished loading. The window title change happens at the beginning of the plugin loading, and stays the same even after it's done loading so targeting via window title won't work. Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
DaleHohm Posted July 6, 2012 Share Posted July 6, 2012 I don't know about FoxIt, but the Adobe PDF plugin provides no automation/communication within the browser at all. FoxIt may be different, you'll have to ask there. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Mechaflash Posted July 6, 2012 Author Share Posted July 6, 2012 I don't know about FoxIt, but the Adobe PDF plugin provides no automation/communication within the browser at all. FoxIt may be different, you'll have to ask there.DaleYeah... they want to charge for their SDK to interact with their software. =(. I was hoping there was some generic way to target plugin loading or something.I suppose it's a lost cause unless I want to dish out the cash. Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” 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