fielmann Posted March 26, 2008 Share Posted March 26, 2008 Hello autoit friends! How to create a simple and fast web-browser with autoit? Can somebody give me some tips how to begin? Which basic commands do I need to start? Is TCPRecv-command the right way? Link to comment Share on other sites More sharing options...
Valuater Posted March 27, 2008 Share Posted March 27, 2008 Straight from help expandcollapse popup#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/webbrowser/reference/objects/internetexplorer.asp Func 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("http://www.autoitscript.com") ; 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("http://www.autoitscript.com") 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 ;==>Example 8) Link to comment Share on other sites More sharing options...
weaponx Posted March 27, 2008 Share Posted March 27, 2008 Embedding internet explorer will not be any faster or slower than actually using Internet Explorer. All of the web browsers in Example Scripts work this way, with less functionality. Link to comment Share on other sites More sharing options...
fielmann Posted March 27, 2008 Author Share Posted March 27, 2008 Embedding internet explorer will not be any faster or slower than actually using Internet Explorer. All of the web browsers in Example Scripts work this way, with less functionality.I don't want to use to embed the IE. I'd like to create my own simple webbrowser. Is there no easy method to realize a webbroser based on autoit without embedding IE? Link to comment Share on other sites More sharing options...
DW1 Posted March 27, 2008 Share Posted March 27, 2008 I think you underestimate how complex a simple web browser really is... AutoIt3 Online Help Link to comment Share on other sites More sharing options...
fielmann Posted March 27, 2008 Author Share Posted March 27, 2008 I think you underestimate how complex a simple web browser really is...Complexity means compatibility! I don't need complex compaibility to every website. Plain HTML is what I need for my webbrowser-project. Is that possible to realize whith autoit? Link to comment Share on other sites More sharing options...
weaponx Posted March 27, 2008 Share Posted March 27, 2008 Complexity means compatibility! I don't need complex compaibility to every website. Plain HTML is what I need for my webbrowser-project. Is that possible to realize whith autoit? Well I think you must understand you will have to write an html / javascript / vbscript parser AND a rendering engine. Link to comment Share on other sites More sharing options...
fielmann Posted March 27, 2008 Author Share Posted March 27, 2008 Well I think you must understand you will have to write an html / javascript / vbscript parser AND a rendering engine.OK lets start at the beginning: HTML-parser! javascript <- not necessary for version 1.0 vbscipt <- not necessary for version 1.0 rendering engine <- not necessary for version 1.0 How to start to write a HTML-parser with autoit? Link to comment Share on other sites More sharing options...
weaponx Posted March 27, 2008 Share Posted March 27, 2008 You must be insane. AutoIt lacks object-oriented goodness. Managing all of the possible parameters for HTML tags would be a nightmare with AutoIt.Maybe start perusing the W3C reference for the HTML structure:http://www.w3.org/html/wg/html5/That ought to knock some sense into you. Link to comment Share on other sites More sharing options...
fielmann Posted March 27, 2008 Author Share Posted March 27, 2008 You must be insane. AutoIt lacks object-oriented goodness. Managing all of the possible parameters for HTML tags would be a nightmare with AutoIt.Maybe start perusing the W3C reference for the HTML structure:http://www.w3.org/html/wg/html5/That ought to knock some sense into you.OK now a have some sense for the stuff. Looks like I don't need a complete parser.What I need is to communicate with a webserver:1) start communication2) enter username3) enter password4) check that login was correct Thats all. Can I make that without (embeded) IE?I think I could realize that with TCP commands. Is that a way ? Link to comment Share on other sites More sharing options...
Cemilian Posted November 17, 2013 Share Posted November 17, 2013 Has anyone made a Web-Browser yet? Link to comment Share on other sites More sharing options...
Bert Posted November 17, 2013 Share Posted November 17, 2013 (edited) Has anyone made a Web-Browser yet? Have you learned to see this post is over 5 YEARS OLD? Edited November 17, 2013 by YogiBear 0xdefea7 and CosmicDan 2 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
NewPlaza Posted November 19, 2013 Share Posted November 19, 2013 ROTFL! I just read this post and it made my day. Thank you fielmann! 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