Jump to content
Sign in to follow this  
con1

open IEXPLORE.EXE with Run-Command

Recommended Posts

con1

Hello,

is there a way to send commands, like _IENavigate, _IEAction, _IEImgClick ...

... to an IEXLORE-window that was opened with a Run-Command?

This Script does not work:

#include <IE.au3>

$IE = Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE")

Sleep(1000)

_IENavigate ($IE, "http://www.autoitscript.com/forum/index.php?")

Thanks

con1

Share this post


Link to post
Share on other sites
Valuater

This is the easy way...

#include <IE.au3>
$IE = _IECreate("http://www.autoitscript.com/forum/index.php?")

however, you can use _IEAttach()

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
con1

hello,

this script works, but it only navigate to msn.com then it just stops, why??? (tested on Vista, IE7)

#include <IE.au3>

Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE")

WinWait("Blank Page - Windows Internet Explorer","Favorites Command Ba")
If Not WinActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("Blank Page - Windows Internet Explorer","Favorites Command Ba")
WinWaitActive("Blank Page - Windows Internet Explorer","Favorites Command Ba")

$OBJECT = _IEAttach ("Blank Page - Windows Internet Explorer", "embedded")

_IENavigate ($OBJECT, "http://msn.com")
_IELoadWait ($OBJECT)
_IENavigate ($OBJECT, "http://google.com")
_IELoadWait ($OBJECT)

Share this post


Link to post
Share on other sites
con1

got it...

#include <IE.au3>

Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE")

WinWait("Blank Page - Windows Internet Explorer","Favorites Command Ba")

If Not WinActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("Blank Page - Windows Internet Explorer","Favorites Command Ba")

WinWaitActive("Blank Page - Windows Internet Explorer","Favorites Command Ba")

$oIE = _IEAttach ("", "instance",1)

_IENavigate ($oIE, "http://msn.com/")

_IELoadWait ($oIE)

_IENavigate ($oIE, "http://google.com/")

_IELoadWait ($oIE)

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  

×