Jump to content
Sign in to follow this  
SalazarCheats

IE embedded

Recommended Posts

SalazarCheats

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

Share this post


Link to post
Share on other sites
newb_powa'

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

Share this post


Link to post
Share on other sites
SalazarCheats

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


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

Share this post


Link to post
Share on other sites
newb_powa'

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 :)

Share this post


Link to post
Share on other sites
SalazarCheats

i just tryed it come up with an error

but ill try again and if it dont work can u tel me how


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

Share this post


Link to post
Share on other sites
newb_powa'

i just tryed it come up with an error

but ill try again and if it dont work can u tel me how

Why not, the important thing is to try, post what you've got and I'll help you, but I should say I'm not really better than you at scripting, I'm a newb too :)

Share this post


Link to post
Share on other sites
SalazarCheats

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


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

Share this post


Link to post
Share on other sites
newb_powa'

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.