ghost11996 Posted June 18, 2014 Posted June 18, 2014 Hello I'm having a problem with youtube's player fullscreen using the link www.youtube.com/watch?v=a1Y73sPHKxw the fullscreen works right but #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/watch?v=a1Y73sPHKxw") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd When using the link http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd And the Fullscreen's controls is bigger Try run the code if you dont see the images are different I've tried this : '?do=embed' frameborder='0' data-embedContent>> It fixed the fullscreen but the fullscreen Adobe flash player goes to IE's tab instead of goes to the autoit gui's tab Any advise please help me [color=rgb(255,0,0);]C[/color][color=rgb(255,140,0);]a[/color][color=rgb(255,215,0);]n[/color] [color=rgb(255,255,0);]i[/color] [color=rgb(175,238,238);]e[/color][color=rgb(0,255,255);]a[/color][color=rgb(64,224,208);]t[/color] [color=rgb(0,0,205);]S[/color][color=rgb(0,0,255);]i[/color][color=rgb(0,0,128);]g[/color][color=rgb(75,0,130);]n[/color][color=rgb(128,0,128);]at[/color][color=rgb(238,130,238);]u[/color][color=rgb(221,160,221);]r[/color][color=rgb(230,230,250);]e[/color] [color=rgb(0,255,0);]?[/color] :ermm: [color=rgb(0,255,0);]Project: Mini Youtube BETA[/color]
debkol35 Posted June 18, 2014 Posted June 18, 2014 (edited) bro, please dont get angry, since I am asking this stupid question, in your IE embedded version, youtube videos are playing in HTML5 player? MY IE embedded version opening youtube page but not playing videos in HTML5 player #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() GUICreate("Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) GUICtrlCreateObj($oIE, 10, 40, 600, 360) Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30) GUICtrlSetColor(-1, 0xff0000) GUISetState(@SW_SHOW) ;Show GUI _IENavigate($oIE, "https://www.youtube.com/watch?v=uPfSxJXAqAE") While 1 Local $iMsg = GUIGetMsg() WEnd Edited June 18, 2014 by debkol35
ghost11996 Posted June 18, 2014 Author Posted June 18, 2014 @debkol35 umm your problem is the code need a while or a do and i think in IE embedded i used, youtube videos are playing in default player expandcollapse popup#include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) GUICtrlCreateObj($oIE, 10, 40, 600, 360) Local $idButton_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) Local $idButton_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) Local $idButton_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) Local $idButton_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30) Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30) GUICtrlSetColor(-1, 0xff0000) GUISetState(@SW_SHOW) ;Show GUI _IENavigate($oIE, "https://www.google.com") While 1 $msg=GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $idButton_Back ;goback Case $idButton_Forward ;gonext Case $idButton_Home ;gohome Case $idButton_Stop ;stop EndSwitch WEnd ;Do ; $msg = GUIGetMsg() ;Until $msg = $GUI_EVENT_CLOSE ;Exit [color=rgb(255,0,0);]C[/color][color=rgb(255,140,0);]a[/color][color=rgb(255,215,0);]n[/color] [color=rgb(255,255,0);]i[/color] [color=rgb(175,238,238);]e[/color][color=rgb(0,255,255);]a[/color][color=rgb(64,224,208);]t[/color] [color=rgb(0,0,205);]S[/color][color=rgb(0,0,255);]i[/color][color=rgb(0,0,128);]g[/color][color=rgb(75,0,130);]n[/color][color=rgb(128,0,128);]at[/color][color=rgb(238,130,238);]u[/color][color=rgb(221,160,221);]r[/color][color=rgb(230,230,250);]e[/color] [color=rgb(0,255,0);]?[/color] :ermm: [color=rgb(0,255,0);]Project: Mini Youtube BETA[/color]
debkol35 Posted June 18, 2014 Posted June 18, 2014 (edited) ummm...its playing yt videos if flash is loaded ...or else not...but in IE ..when I open yt video, video is playing by HTML5 player..dont know why its not loading HTML5 player ok..now I understand why HTML5 not playing !! Problem solved :- '?do=embed' frameborder='0' data-embedContent>> Edited June 18, 2014 by debkol35
ghost11996 Posted June 19, 2014 Author Posted June 19, 2014 @debkol35 I tried the link ?do=embed' frameborder='0' data-embedContent> It shows that i use IE 9 but the fullscreen still same. #RequireAdmin RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION", "AutoIt3.exe", "REG_DWORD", "0x270F");0x2328 If @error Then MsgBox(0,"Error Couldnt write registry","Error : "&@error) EndIf #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd Help please [color=rgb(255,0,0);]C[/color][color=rgb(255,140,0);]a[/color][color=rgb(255,215,0);]n[/color] [color=rgb(255,255,0);]i[/color] [color=rgb(175,238,238);]e[/color][color=rgb(0,255,255);]a[/color][color=rgb(64,224,208);]t[/color] [color=rgb(0,0,205);]S[/color][color=rgb(0,0,255);]i[/color][color=rgb(0,0,128);]g[/color][color=rgb(75,0,130);]n[/color][color=rgb(128,0,128);]at[/color][color=rgb(238,130,238);]u[/color][color=rgb(221,160,221);]r[/color][color=rgb(230,230,250);]e[/color] [color=rgb(0,255,0);]?[/color] :ermm: [color=rgb(0,255,0);]Project: Mini Youtube BETA[/color]
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