Jump to content

IE.au3 functions not working with WIn7 IE 8 simple form


Recommended Posts

I enabled protected modem for all zones and also tried default security settings in IE8 but still does't work. I made a simple web form html file on my desktop which is loaded by AutoIt script using _IECreate which loads but populating the form does not work. I can't figure out why?  Works in IE11, Works in XP IE8 but not in Win7 IE8 which is what I need.  Erroe code is 3

#include <IE.au3>
#include <MsgBoxConstants.au3>
#include <Inet.au3>

;Global $oIE = _IECreate($mip & "/notes/test/feat_admin_config.html", 0 ,1, 1)   ;for work need to test
;Global $oIE = _IECreate("formtest.html", 0 ,1, 1)   ;for work need to test
$POD = "test"
Global $oIE = _IECreate(@ScriptDir & "\formtest.html", 0, 1, 1)   ;for work
;Global $oIE = _IECreate(@ScriptDir, 0 1, 1)   ;for work

Local $user = _IEGetObjByName($oIE, "firstname")
Local $pass = _IEGetObjByName($oIE, "lastname")
Local $button = _IEGetObjById ($oIE, "start")  

_IEFormElementSetValue ($user, "mso")
_IEFormElementSetValue ($pass, $POD)
If @error Then
    MsgBox(0, "", "Error in function SignIn at line 279...Error code: " & @error & "Exiting...")
;~      ;msgbox(0,'','POD: ' & $user & ' is ' & $POD, 2)
;_IEAction ($button, "click")
;_IELinkClickByText($oIE, "Admin")

Here is my html form called formtest.html located on my desktop:

First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
<input type="submit" value="Submit">

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...