Sign in to follow this  
Followers 0
kdpine

IE explorer help

9 posts in this topic

#1 ·  Posted (edited)

I am a new coder and am stuck on trying to select the address bar in IE. I want to direct IE to a specific web page to login and open an application. I have it working if my default home page is set to the login page. If my default is different, http://www.msn.com or anything else, it won't work. I want it to go to my login page and login.

This may be easy for some of you folks, but I'm stuck on it.

Thank you all in advance. I can see I will be learning a bit here over the next few weeks.

KDPINE.

Edited by kdpine

Share this post


Link to post
Share on other sites



Look at this example <_<

#include <IE.au3>
$oIE=_IECreate("www.google.com)
_IENavigate($oIE,"www.yahoo.com")
Sleep(3000)
_IENavigate($oIE,"www.autoitscript.com")

Look in the help file, IE.au3 is what you need.

Share this post


Link to post
Share on other sites

Just a note/complaint. I think the reason people miss this is because they do what I did. I used the online documentation for everything, but the UDFs only seem to be in the script editors help file. I googled all over, seeing people suggest that the help file be read, meanwhile I was looking at the online documentation shouting, "WHERE IS IT?!" If it is online, I sure as hell couldn't find it.

Share this post


Link to post
Share on other sites

This worked great. I edited it a bit. Thatnks for the qwik help. I was struggling with the help files and looking in the forums. Finally I fell to my knees begging and sobbing for help.

Tank you berry, berry much.

Look at this example <_<

#include <IE.au3>
$oIE=_IECreate("www.google.com)
_IENavigate($oIE,"www.yahoo.com")
Sleep(3000)
_IENavigate($oIE,"www.autoitscript.com")

Look in the help file, IE.au3 is what you need.

Share this post


Link to post
Share on other sites

Is there a way I can have auto it wait until the web page loads before it enters the user credentials? The way I have it now I put in 5 or 7 second pauses, but sometimes it's not long enough.

Thank you for the input.

KD

Look at this example <_<

#include <IE.au3>
$oIE=_IECreate("www.google.com)
_IENavigate($oIE,"www.yahoo.com")
Sleep(3000)
_IENavigate($oIE,"www.autoitscript.com")

Look in the help file, IE.au3 is what you need.

Share this post


Link to post
Share on other sites

_IEloadwait

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

_IECreate() and _IENavigate() will pause until it loads, but you'll have to use _IELoadWait() after clicking on a link or submiting a form, for example.

Edited by Nahuel

Share this post


Link to post
Share on other sites

I have created this script to login to our Citrix farm. It all works pretty good. It will connect to the web site pause 5 seconds to load then enter the credentials for the citrix login. I have it Tab 7 times, which will select the published app that will bring up a blank desktop to the application, I do an Alt F and enter to tell it to open the login page, enter another set of credentials which opens the app.

I had asked earlier about how to wait until the page loads without a specific time interval, but I am unsure about how apply that. I have tried a couple different ways that did not work. This is my script, any help in improving it will be greatly appreciated.

Thank you

KD

#include <IE.au3>

$oIE=_IECreate("https://ourwebsite")

WinWaitActive("MetaFrame Presentation Server Log In - Microsoft Internet Explorer")

WinWaitActive("Untitled", "", 5)

Send("username")

Send("{Tab}")

Send("passw")

Send("{Enter}")

WinWaitActive("Untitled", "", 7)

Send("{Tab 7}")

Send("{Enter}")

WinWaitActive("Untitled", "", 7)

Send("!f")

Send("{Enter}")

WinWaitActive("SignIn")

Send("usern")

Send("{Tab}")

Send("passw")

Send("{Enter}")

_IECreate() and _IENavigate() will pause until it loads, but you'll have to use _IELoadWait() after clicking on a link or submiting a form, for example.

Share this post


Link to post
Share on other sites

As he just said..if you use IECreate, it should automatically wait until it loads.

Also, instead of using Send, you could ControlSend (it's safer), or even better, use _IE functions.

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  
Followers 0