Jump to content

IE embedded


Recommended Posts

can any one tell me how to put a website in to a gui...

NO telling me to lookin the help files i have been doing for the last few days because people have been telling me to and they just dont work...

so can someone post the script here.

Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes

Link to comment
Share on other sites

can any one tell me how to put a website in to a gui...

NO telling me to lookin the help files i have been doing for the last few days because people have been telling me to and they just dont work...

so can someone post the script here.

What about

#include <GUIConstants.au3>
#include <IE.au3>

$oIE = _IECreateEmbedded ()
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", 340, 420, 100, 30)

GUISetState()       ;Show GUI

_IENavigate ($oIE, "http://www.autoitscript.com")

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            _IENavigate ($oIE, "http://www.autoitscript.com")
        Case $msg = $GUI_Button_Back
            _IEAction ($oIE, "back")
        Case $msg = $GUI_Button_Forward
            _IEAction ($oIE, "forward")
        Case $msg = $GUI_Button_Stop
            _IEAction ($oIE, "stop")
    EndSelect
WEnd

GUIDelete()

Exit

I took that little piece of code in the helpfile :S

Link to comment
Share on other sites

can you plz do this with out the buttons for home and stuff i only want the website bit

I don't think it's that hard, you could do it by yourself easily, I think you just didn't look in the helpfile and I'm not gonna do everything for you. It's only like 5 or 6 line of code to remove, come on you can do it :)

Link to comment
Share on other sites

i just deleted it... can you plz just edit it therew and send over here

There is a simple one

#include <GUIConstants.au3>
#include <IE.au3>

$Width = 200 ;Change it to the size of the window you want
$Height = 200 ;Change it to the size of the window you want
$URL = "www.google.com" ;Change it to the URL you want


$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", $Width, $Height, 0, 0, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, $Width-20, $Height-20)
GUISetState()
_IENavigate ($oIE, $URL)


While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd


GUIDelete()
Exit
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...