monitorlg Posted March 18, 2009 Share Posted March 18, 2009 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. Link to comment Share on other sites More sharing options...
foster74 Posted March 18, 2009 Share Posted March 18, 2009 #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 Link to comment Share on other sites More sharing options...
monitorlg Posted March 18, 2009 Author Share Posted March 18, 2009 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.... Link to comment Share on other sites More sharing options...
foster74 Posted March 18, 2009 Share Posted March 18, 2009 This may be a silly question, but did you call _IEQuit before closing the form? Link to comment Share on other sites More sharing options...
monitorlg Posted March 18, 2009 Author Share Posted March 18, 2009 This may be a silly question, but did you call _IEQuit before closing the form?Thanks its working....... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now