Jump to content
Sign in to follow this  

Gui Broswer

Recommended Posts


Is this possible using AutoIt?

Create a Gui with the browser or a webpage in side it allowing you to navigate like a noraml broswer but in the Gui?

Anyone know if it is possible and can give me an example of a script?

Greatly appreciated if you can :(

Oops browser spelt wrong in the title :)

Edited by ImNoHacker

Share this post

Link to post
Share on other sites

I think this is as close as you can come. You won't have an address bar, but you could always make one yourself. Or I think IE.au3 can do it http://www.autoitscript.com/forum/index.php?showtopic=25629

#include <GUIConstants.au3>
#include <INet.au3>
; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI
; The full example is available in the test\ActiveX directory (TestXInternet.au3)
; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp

$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 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$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
$source = _INetGetSource("WWW.YOURSITEHERE.COM")
$file = filewrite(@ScriptDir & "\source.html",$source)

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $GUI_Button_Home
        Case $msg = $GUI_Button_Back
        Case $msg = $GUI_Button_Forward
        Case $msg = $GUI_Button_Stop

GUIDelete ()


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  

  • Create New...