Jump to content
Sign in to follow this  

ie.au3 - IE9 Still a Problem

Recommended Posts

I added to a thread about these IE9 problems in the Developer Chat forum but I haven't had any replies so I am posting it here since this seems to be the more official way to get help.

Problems with using the Internet Explorer UDF (ie.au3) with IE9 have been posted elsewhere but in essence, some functions like clicking on a button weren't / aren't working under IE9. I am running under Win7 64 bit and I have broken scripts that won't run because of this. I tried compatibility mode (and a couple of functions that were posted to switch to other modes); I tried using the latest ie.au3 version; and, I tried compiling with the latest Beta but the results are the same each time. I tried sample code from the previous threads that demonstrate clicking on a button working when using COM functions directly (under compatibility mode) and not working when using ie.au3.

My impression from what I can find on the forums is that this is considered to be a solved problem. There are some changes in the UDF that seem to be focused on dealing with this and there is a closed ticket that seems to address these issues. None-the-less, I am still having the same problem. Am I missing something obvious, is this actually not solved (yet) or is it possibly a different variation of the same issue?

Help would be appreciated. I have some scripts using this UDF that I can't support at the present because of this.

Edited by chrshea

Share this post

Link to post
Share on other sites

I added to a thread about these IE9 problems in the Developer Chat forum but I haven't had any replies so I am posting it here since this seems to be the more official way to get help.

Problems with using the Internet

Describe the problem or provide a link.

Edit: Post a sample reproducer of your code.

Edited by forumer100

App: Au3toCmd              UDF: _SingleScript()                             

Share this post

Link to post
Share on other sites

Here is the sample code from previous threads on this topic:

1. This one doesn't use ie.au3 and it works under compatibility mode (but not if I turn it off):

$oIE = ObjCreate("InternetExplorer.Application")
$oIE.visible = 1
$oB = $oIE.document.getElementsByName("submit").Item(0)
$oEvt = ObjEvent($oB, "Evt_")
ConsoleWrite($oB.outerhtml & @CRLF)
Func Evt_($s)
    ConsoleWrite($s & @CRLF)

2. This one uses ie.au3 and it doesn't work in either mode:

; This test uses IE.au3
; FROM: http://www.autoitscript.com/forum/topic/126670-ie9-automation-problems/page__st__60

; This is supposed to work in compatability mode
; (but it doesn't)

#include <IE.au3>

$oIE = _IEAttach("http://wdextras.womansday.com/contests_texas.html", "url")

$oB = $oIE.document.getElementsByName("submit").Item(0)
$oEvt = ObjEvent($oB, "Evt_")

ConsoleWrite($oB.outerhtml & @CRLF)

Func Evt_($s)
    ConsoleWrite($s & @CRLF)

Share this post

Link to post
Share on other sites


The URL http://wdextras.womansday.com/contests_texas.html leads to a login page for a competition. Please read the Forum Rules - particluarly this part:

"Do not discuss any of the following:


SPAM tools including instant messenger or forum auto-posters. This includes forum or site auto-login methods"

Please do not post seeking help with such things again. :oops:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Jamestay97
      Hello! Thanks you for looking at my post
      **No source code I'm sorry work related can't copy information**
      I've been using autoit for about 1 year. 
      I'm having trouble automating a click on an internet explorer web page and I've tried a lot of examples from help pages and forums already. The object I'm trying to click on isnt always in the same spot so I can't use mouse click or control click, I have tried to use the different get collection options and clickbyname, or index or get object. I'm just struggling. 
      Description of object I'm trying to click -- 
      HTML Code looks like <a ng-click.. "Click Here" it appears it's just a click able object named "click here" that opens a hidden window by running a script inside the web page. I'm not able to grab the information from the window unless it's open so I have to automate this click somehow. 
      I understand it's difficult to assist without having something to look at, I apologize for that sincerely and appreciate and assistance and suggestions. 
    • By FUD
      please i need help 
      i need to open link in default browser only one windows without duplicate if i try to open the same link 
    • By Mariog2000
      I've tried for a few days to simply open a url in IE and click an IE object that I can't "TAB" to and don't want to use a mouse-click if at all possible.  I've read up on things like using IEAction and IETagNameGetCollection to find the object but not smart enough to figure out how that works with my url or how to tell if my url is "basic" or a "form", "frameset", "iframe", etc.
      The other problem is I've tried using the "Run" and "ShellExecute" commands to open the browser, which works, but it opens it in a way that doesn't include my currently logged in user account.  For example, if I just click IE or Chrome for that matter and open my default homepage of google, the page that opens knows I'm logged in.  When I use "Send" "ShellExecute" or "_IE_Create" they always open pages generically which would require a login.
      So questions are, if I have a URL I'm trying to open, that's passes the currently logged on users credentials when opening the page (no clue where that happens)
      1.  Are there any code examples someone is willing to share that opens my IE maximized, with logged in credentials, and
      2.  Once that works, can someone suggest a technique a non-developer can find which IE Objects I need to send a "click" to so it opens the correct menu, pop-up, url, etc., associated with that object.  I've copied what doesn't work and sure I'm way off but it's not for a lack of effort. I'll keep trying and post updates but not looking good 🙂
      #include <IE.au3>
      Call ("selection")
      Func selection ()
      Global $oIE = _IECreate ("https://internal-webpage.aspx")
      Local $selectid = _IEGetObjByName ($oIE, "signageNo")
      Local $button = _IEGetObjByName ($oIE, "GO")

      _IEFormElementOptionSelect ($selectid, "3")
      _IEAction ($button,"click")
      #include <IE.au3> Call ("selection") Func selection () Global $oIE = _IECreate ("https://internal-webpage.aspx") Local $selectid = _IEGetObjByName ($oIE, "signageNo") Local $button = _IEGetObjByName ($oIE, "GO") _IEFormElementOptionSelect ($selectid, "3") _IEAction ($button,"click") EndFunc 1. 
    • By singh54
      Hello All,

      I am new to auto It  and coding. Have only tried few automated logging for different websites.  The login pages of the websites which I have worked on were having form name with input type as text and it seems straight forward to automate their login using "_IEFormElementSetValue".
      I have got a url, it does not have any form in the source page. On further analyzing I found that It does call some login page separately as below.
      function showLogin(arg) {
        Global.pollingDialogDoc = null;
        var fresh = jQuery.isValidString(arg) && "fresh" == arg ? !0 : !1, appFrame = $("#appFrame");
        if ($("#modalFrame").show(), $("iframe").hide(), fresh || !appFrame.attr('src').match("html/login.html")) appFrame.attr('src', baseURL + 'html/login.html'), 
        appFrame.on('load', function() {
          setTimeout(function() {
            $("#modalFrame").hide(), appFrame.show();
          }, 1);
        }); else try {
        } catch (e) {}
      I can simply use "send" and "mouse click" Method to automate the login but that doesn't seems very reliable. Is there any separate way to fill the user ID and password to the respective fields by having reference by frames or something. 
      Appreciate if any one can point me to correct document or help in any way...!
  • Create New...