mesale0077 Posted May 24, 2009 Share Posted May 24, 2009 (edited) hi index.html ,run html page inthe autoit code ,and when close autoit ,together htmlpage'll close look it ,like picture,ı want to make it,but how is it ,ı dont know? code : #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("[#] Form1 [#]", 633, 449, 192, 124) $Edit1 = GUICtrlCreateEdit("", 32, 40, 569, 361) GUICtrlSetData(-1, "here,how is work html page(index.html) is runing in the autoit code") <---? GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited May 24, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
Valuater Posted May 24, 2009 Share Posted May 24, 2009 (edited) See GUICtrlCreateObj() and _IECreateEmbedded () in the help file There are some great examples at the bottom of the page!! 8) Edited May 24, 2009 by Valuater Link to comment Share on other sites More sharing options...
mesale0077 Posted May 24, 2009 Author Share Posted May 24, 2009 (edited) ok thank you , but index.html and autoitscript in the same folder,when (,"http://www.autoitscript.com") change index.html,,page no found ,dont show index.html,but ok it is show (http://www.autoitscript.com) but index.html and scipt inthe samefolder,dont work index html,why ,help you please?code :#include <GUIConstantsEx.au3>#include <WindowsConstants.au3>Opt('MustDeclareVars', 1)Example(); Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI;; See also: http://msdn.microsoft.com/workshop/browser...netexplorer.aspFunc Example() Local $oIE, $GUIActiveX, $GUI_Button_Back, $GUI_Button_Forward Local $GUI_Button_Home, $GUI_Button_Stop, $msg $oIE = ObjCreate("Shell.Explorer.2") ; Create a simple GUI for our output GUICreate("Embedded Web control Test", 640, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $GUIActiveX = GUICtrlCreateObj ($oIE, 10, 40, 600, 360)<---? $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 330, 420, 100, 30) GUISetState() ;Show GUI $oIE.navigate("index.html")<---? ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home $oIE.navigate("index.html")<----? Case $msg = $GUI_Button_Back $oIE.GoBack Case $msg = $GUI_Button_Forward $oIE.GoForward Case $msg = $GUI_Button_Stop $oIE.Stop EndSelect WEnd GUIDelete()EndFunc help Edited May 24, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
mesale0077 Posted May 24, 2009 Author Share Posted May 24, 2009 (edited) dont show it index.html,index.html and autoitscript in the same folder Edited May 24, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
mesale0077 Posted May 24, 2009 Author Share Posted May 24, 2009 help please Link to comment Share on other sites More sharing options...
Valuater Posted May 24, 2009 Share Posted May 24, 2009 This worked for me $oIE.navigate(@ScriptDir & "\Temp.html") 8) Link to comment Share on other sites More sharing options...
mesale0077 Posted May 25, 2009 Author Share Posted May 25, 2009 very very thank you valuater,worked,but,how is work hta file inthe script,like html file, good works 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