InfraRed Posted July 12, 2014 Share Posted July 12, 2014 Hi, I recently updated to 3.3.12.0 version of autoit (didn't update for a long time) and trying to edit some of my scripts. So I encountered a problem. I open IE window, which is invisible: $oIE = _IECreate("supply.wowgold.ru/new/",0,0) _IELoadWait($oIE) $ievisible=0 And each 2 seconds it reloads page and runs $sHTML = _IEDocReadHTML($oIE) But after I make it visible with function Func ievisible() If $ievisible=0 Then _IEAction($oIE,"visible") $ievisible=1 ElseIf $ievisible=1 Then _IEAction($oIE,"Invisible") $ievisible=0 EndIf EndFunc Autoit can't work with it and puts such messages into console: --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.) --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) --> IE.au3 T3.0-1 Error from function _IEAction(visible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(invisible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(visible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(invisible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(visible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(invisible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(visible), $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) Can you halp me pls? It worked before update Thanks! Link to comment Share on other sites More sharing options...
Gianni Posted July 12, 2014 Share Posted July 12, 2014 is the $oIE variable declared as Global? Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
InfraRed Posted July 13, 2014 Author Share Posted July 13, 2014 is the $oIE variable declared as Global? Made it global - no changes Link to comment Share on other sites More sharing options...
InfraRed Posted July 30, 2014 Author Share Posted July 30, 2014 (edited) Today returned to this problem and noticed that visibility status doesn't matter. Even if I Global $oIE = _IECreate("supply.wowgold.ru/new/",0,1) it starts to tell --> IE.au3 T3.0-1 Warning from function _IELoadWait, $_IESTATUS_LoadWaitTimeout --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_COMError (-2147352567) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_COMError (-2147352567) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_COMError (-2147352567) Or it reloads page several times (like it should) but if I make ie window inactive I see in console: --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType--> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEDocReadHTML, $_IESTATUS_InvalidObjectType (Expected document element) P.s. Using Win 8.1 x64 and ie 11 And my other computer with windows 7 x64 works well with this script.. Already reinstalled Autoit and tried beta release. Edited July 30, 2014 by InfraRed Link to comment Share on other sites More sharing options...
j0kky Posted July 30, 2014 Share Posted July 30, 2014 Can you post the entire code? Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs Link to comment Share on other sites More sharing options...
InfraRed Posted July 30, 2014 Author Share Posted July 30, 2014 (edited) [<snip> I'll delete it after some time.. Don't want it to be public Edited July 30, 2014 by Melba23 Code removed Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 30, 2014 Moderators Share Posted July 30, 2014 (edited) InfraRed, I'll delete it after some timeI will save you the trouble. And you appear not to have read the Forum rules since your arrival. Please do read them - particularly the bit about not discussing game automation - before you post again. Thread locked. M23Edit:InfraRed has successfully argued that the script is not game automation - merely a way he can separate WoW gamers from their hard-earned cash. So I have reopened the thread - if any wants to help him, go ahead. Edited July 30, 2014 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
j0kky Posted July 30, 2014 Share Posted July 30, 2014 ... And the code? Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs Link to comment Share on other sites More sharing options...
computergroove Posted July 30, 2014 Share Posted July 30, 2014 InfraRed, I will save you the trouble. And you appear not to have read the Forum rules since your arrival. Please do read them - particularly the bit about not discussing game automation - before you post again. Thread locked. M23 Edit: InfraRed has successfully argued that the script is not game automation - merely a way he can separate WoW gamers from their hard-earned cash. So I have reopened the thread - if any wants to help him, go ahead. I had logged into that website earlier and I couldn't register or login but I thought it was a site having to do with WOW. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
InfraRed Posted July 31, 2014 Author Share Posted July 31, 2014 (edited) del Edited July 31, 2014 by InfraRed Link to comment Share on other sites More sharing options...
j0kky Posted July 31, 2014 Share Posted July 31, 2014 So you don't have problems anymore? Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs Link to comment Share on other sites More sharing options...
InfraRed Posted July 31, 2014 Author Share Posted July 31, 2014 I think yes. Just want to say that in win8 x64 upd1 autoit works different with ie then in win 7 x64. Found that if I click any ref on in that ie window - autoit puts errors into console. In win 7 autoit continued to reload that page) Just some features in different os. Thanks for help! 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