Sign in to follow this  
Followers 0
c4mpi

Anyway to attach an embedded ie?

2 posts in this topic

The Title says it all, how can I attach an embedded IE?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This shud work

Parameters

$s_string String to search for (for "embedded" or "dialogbox", use Title sub-string or HWND of window)

$s_mode = Embedded = title sub-string or hwnd of of the window embedding the control

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$oIE = _IECreateEmbedded ()
$gui = GUICreate("Embedded Web control Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
GUISetState()       ;Show GUI
_IENavigate ($oIE, "http://www.autoitscript.com")
$1 = _IEAttach($gui,"Embedded")
_IENavigate ($1, "http://www.google.com")
While 1
    Sleep(10)
WEnd

Edit: #include <IE.au3>$oIE = _IECreateEmbedded ()

to

#include <IE.au3>

$oIE = _IECreateEmbedded ()

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

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