Jump to content
Sign in to follow this  
kcd-clan

Is there a way to use website inside gui

Recommended Posts

Xenobiologist

Hi,

check helpfile for _IECreateEmbedded

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
ChrisL

Is there some way to inergrade a website into gui

Well is their one aready done.

This used to be in the help file somewhere can't see it though at the minute so I picked it out of a script I have

$o_ComError = ObjEvent("AutoIt.Error","Object_Error")
$oIE = ObjCreate("Shell.Explorer.2")

#include <GUIConstants.au3>
; Create a simple GUI for our output
GUICreate ( "Autoit", 800, 600,(@DesktopWidth-800)/2, (@DesktopHeight-600)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX         = GUICtrlCreateObj      ( $oIE,      5, 40 , 790 , 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)


GuiCtrlSetFont (-1,14)
GUISetState ()    ;Show GUI

$oIE.navigate("http://www.AutoitScript.com")


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
        
        Case Else 
        ;
    EndSelect
    
Wend

GUIDelete ()
Exit

Func Object_Error() 
   msgbox(64, "Error", "Sorry can not process request")
   SetError(1); something to check for when this function returns 
Endfunc

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.