Sign in to follow this  
Followers 0
monitorlg

IE embedding to My GUI

5 posts in this topic

Hi All,

I have created a GUI using AUTOIT Koda . My GUI has a Group box and some buttons.

I want to embeed the IE in the Group box, can anybody help me with this...

Does any body have a sample script or can give soem inputs how to do it.

Please Help.

Thanks in Advance.

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Button1 = GUICtrlCreateButton("Google.com", 96, 376, 91, 25, 0)
$Button2 = GUICtrlCreateButton("autoitscript.com", 264, 400, 99, 25, 0)
$Button3 = GUICtrlCreateButton("godaddy.com", 448, 352, 115, 25, 0)
$Group1 = GUICtrlCreateGroup("IE", 160, 32, 289, 241)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $oIE = _IECreateEmbedded ()
Global $GUIActiveX = GUICtrlCreateObj($oIE, 170, 50, 270, 210)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            _IENavigate($oiE, 'www.google.com')
        Case $Button2
            _IENavigate($oiE, 'www.autoitscript.com')
        Case $Button3
            _IENavigate($oiE, 'godaddy.com')
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

Thanks for the code....I had got the code and my code is working...

I tried ur code also and its also working...

But both codes are having the same problem...

When we start browsing in the IE, and after browsing when we want to close the form, form is not responding....and this causes hang of the form..

Can u give a solution for this....or any input, that how to solve this problem....

Share this post


Link to post
Share on other sites

This may be a silly question, but did you call _IEQuit before closing the form?

Share this post


Link to post
Share on other sites

This may be a silly question, but did you call _IEQuit before closing the form?

Thanks its working.......

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