Jump to content
Sign in to follow this  

Input user ID, password and upload a file through internet explore 7 with no windows popped up

Recommended Posts


I have written an AutoIt script doing the following:

Open "Run" (Send("#r")) Run iexpolre(

send("iexplore"), send("{ENTER}"), the web page required is set as home page) input user ID Input user password click submit - input the filepath of the file needed to be uploaded click upload close the web page

It works well in the normal mode, however I need to call it using the wincron, a task scheduling program to run the script at a particular time, and the wincron has be set as a service in user account. Under this mode everything called by the wincron is only run in the black box and cannot interact with the user by displaying a standard Windows

Graphical User Interface. So some commands in the AutoIt script seem not work, such as WinWaitActive(),send("{ENTER}"), _IELoadWait ($oIE) ect. that are relative to UI.

What I want to ask is: are there any functions that I can use in AutoIt such that I can complete the same task without popping up any windows?

Thousands of thanks! :P

Share this post

Link to post
Share on other sites

Code below gives the direction on how to approach this and demonstrates how to logon.

Read and search for IE.AU3 in this forum

$objIE = objCreate("InternetExplorer.Application")

    While $objIE.Busy 
    While $objIE.ReadyState <> 4 

    With $objIE.document.forms("<NameoflogonForm>")
        .username.Value = "<PutHereYourUsername>"
        .password.Value = "<PutHereYourPassword>"
    $objIE.Visible = True
    $objIE = 0

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.