AlienStar Posted September 3, 2020 Share Posted September 3, 2020 hello everybody I need to view a video embedded using ie embedded here is my code #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() GUICreate("Embedded Web control Test", 625, 425, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2) GUICtrlCreateObj($oIE, 10, 40, 600, 360) GUISetState(@SW_SHOW) ;Show GUI $oIE.navigate("about:blank") $html = '<!DOCTYPE html>'&@CRLF& _ '<html>'&@CRLF& _ '<head>'&@CRLF& _ '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>'&@CRLF& _ '</head>'&@CRLF& _ '<body>'&@CRLF& _ '<p style = "font-family:Segoe UI;font-size:16px;">'&@CRLF& _ '<br><center><img src="https://havecamerawilltravel.com/photographer/files/2020/01/youtube-logo-new.jpg" alt="" width="300" height="169"></center>'&@CRLF& _ '<br>'&@CRLF& _ '<center><iframe src="https://www.youtube.com/embed/i6L2YYUU7YQ" width="300" height="168.75" frameborder="0" allowfullscreen="allowfullscreen"></iframe></center>'&@CRLF& _ '</p>'&@CRLF& _ '</body>'&@CRLF& _ '</html>' _IEDocWriteHTML($oIE, $html) While 1 $msg=GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd if I write $html code to file.html then open using internet explorer it works well but not inside autoit ie embedded where is the wrong in my code please thanks Link to comment Share on other sites More sharing options...
Danp2 Posted September 3, 2020 Share Posted September 3, 2020 The embedded browser emulates IE7 by default, so that's probably why the website isn't shown. Check out this thread for a possible solution -- AlienStar 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
AlienStar Posted September 3, 2020 Author Share Posted September 3, 2020 thanks my friend I'll check Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now