Jump to content
Sign in to follow this  

Embedded browser help

Recommended Posts


Hello. I am making a GUI to show a web-document that I make. The web document I have has Javascript in it, and it will load once in the GUI, sometimes, and not update. Is there some way I can embed Chrome or fix what I have?

I don't know much AutoIt, but I know some.

Share this post

Link to post
Share on other sites

Please post the code that you have ;)


My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Share this post

Link to post
Share on other sites

It is a little messy, but here it is:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Local $oIE = _IECreateEmbedded()
; example 1
Func Example1()
Local $msg
GUICreate("My GUI", 640, 480) ; will create a dialog box that when displayed is centered
;GUICreate("Embedded Web control Test", 640, 580, _(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 0, 0, 360, 240)
_IENavigate($oIE, "", 0)
Local $GUI_Button_Left = GUICtrlCreateButton("left", 10, 420, 100, 30)
Local $GUI_Button_Refresh = GUICtrlCreateButton("refresh", 120, 420, 100, 30)
Local $GUI_Button_Right = GUICtrlCreateButton("right", 230, 420, 100, 30)
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
   Local $msg = GUIGetMsg()
   Case $msg = $GUI_EVENT_CLOSE
   Case $msg = $GUI_Button_Left
   ;_IENavigate($oIE2, "")
   Dim $obj = ObjCreate ("WinHttp.WinHttpRequest.5.1")
   $obj.Open("PUT", "", false)
   Case $msg = $GUI_Button_Refresh
   _IENavigate($oIE, "C:\Users\Andrew\Documents\DemoBot\camera.html")
   Case $msg = $GUI_Button_Right
   Dim $obj = ObjCreate ("WinHttp.WinHttpRequest.5.1")
   $obj.Open("PUT", "", false);
EndFunc   ;==>Example1

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