tonycst Posted August 23, 2016 Posted August 23, 2016 Is there any way for autoit to detect that window titled "what ever" is finished loading ? In the past i would simply check by "statusbargettext" (or something like that) but since ie9, that word as well as waiting and other status related messages are now permanently remove (thanks to some genius idiot) Please help. i have a script that beeps when page is finished loading. Now it wont beep anymore.
tonycst Posted August 23, 2016 Author Posted August 23, 2016 I found this page: https://support.microsoft.com/en-us/kb/180366 But its all C++ and i dont have any idea how to use any winapi with autoit, let alone understand it. If StatusbarGetText($Transfer) = $StatusBarMSG Then ;does not work with firefox window SoundPlay($BeepSound, 0) Endif as simple as that.
PACaleala Posted August 26, 2016 Posted August 26, 2016 I can get the beep using the document 'ReadyState' property. More info and a demo can be found here: http://www.w3schools.com/jsref/prop_doc_readystate.asp
tonycst Posted August 26, 2016 Author Posted August 26, 2016 thats java script. Thanks but i ended up finding _IELoadWait() which sucks because it only works for IE
Moderators JLogan3o13 Posted August 26, 2016 Moderators Posted August 26, 2016 @tonycst So what are you wanting to wait for? You're not going to find a single function that works in every conceivable application; you have to be a bit more specific. "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!
tonycst Posted August 27, 2016 Author Posted August 27, 2016 I am waiting for a page to change its status from loading to complete. I solved this problem by attaching the window with _IEAttach() and then doing the following. If _IEPropertyGet ($IE,"busy") = 1 Then _IELoadWait ($IE) SoundPlay($BeepSound, 0) EndIf Once page is loaded, i get my beep. So go ahead and mark this topic as "solved" if possible because now i have a different issue relating to If _IEPropertyGet ($IE,"busy") which i posted separately. Thanks for quick response.
Moderators JLogan3o13 Posted August 29, 2016 Moderators Posted August 29, 2016 @tonycst you can mark it solved yourself by editing your initial post. "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!
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