Sign in to follow this  
Followers 0
MerkurAlex

_iecreateembedded under a tabitem

4 posts in this topic

ok so i have a tabitem but i want to add and embedded ie under is it possible if so i cant figure it out...


[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post


Link to post
Share on other sites



ok so i have a tabitem but i want to add and embedded ie under is it possible if so i cant figure it out...

It can certainly be done.

Do you have any code at all yet? Where are you stuck? Have you created a simple GUI (no tabs) with an embedded IE yet?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

hi

i do it like this to load 2 embedded ies on 2 different tabs

CODE
$Form1 = GUICreate("", 633, 600, 200, 200)

$Tab1 = GUICtrlCreateTab(16, 8, 593, 417)

; item

GUICtrlCreateTabItem("info")

_IEErrorHandlerRegister()

Global $oIE = _IECreateEmbedded()

$GUIActiveX = GUICtrlCreateObj($oIE, 40, 50, 550, 360) ; position ..

$edit_log = GUICtrlCreateEdit("", 15, 440, 590, 120)

$btn_submit = GUICtrlCreateButton("refresh", 10, 570, 75, 20)

; item

GUICtrlCreateTabItem("ergebnis")

_IEErrorHandlerRegister()

Global $oIE2 = _IECreateEmbedded()

$GUIActiveX2 = GUICtrlCreateObj($oIE2, 40, 50, 550, 360) ; position ..

$btn_show = GUICtrlCreateButton("show", 10, 570, 75, 20)

GUISetState(@SW_SHOW)

then loading a http to a certain ie

$url = "http://www.google.com";

_IENavigate($oIE, $url)

_IELoadWait($oIE)

Local $my_html = _IEBodyReadHTML($oIE);

Local $my_text_ascii = _IEBodyReadText($oIE);

Share this post


Link to post
Share on other sites

MAybe...

#include<guiconstants.au3>
#include <IE.au3>

_IEErrorHandlerRegister()

$Form1 = GUICreate("", 633, 600, 200, 200)

$Tab1 = GUICtrlCreateTab(16, 8, 593, 417)

; item
GUICtrlCreateTabItem("info")

Global $oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 40, 50, 550, 360) ; position ..

$edit_log = GUICtrlCreateEdit("", 15, 440, 590, 120)

$btn_submit = GUICtrlCreateButton("refresh", 10, 570, 75, 20)


; item
GUICtrlCreateTabItem("ergebnis")

Global $oIE2 = _IECreateEmbedded()
$GUIActiveX2 = GUICtrlCreateObj($oIE2, 40, 50, 550, 360) ; position ..
$btn_show = GUICtrlCreateButton("show", 10, 570, 75, 20)


GUISetState(@SW_SHOW)



;then loading a http to a certain ie

$url = "http://www.google.com";

_IENavigate($oIE, $url)
_IELoadWait($oIE)

Local $my_html = _IEBodyReadHTML($oIE);
Local $my_text_ascii = _IEBodyReadText($oIE);


_IENavigate($oIE2, $url)
_IELoadWait($oIE2)

While 1
    $Msg = GUIGetMsg()
    
    If $Msg = -3 then Exit
WEnd

8)


NEWHeader1.png

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