Gui Posted November 9, 2009 Share Posted November 9, 2009 Aye guys, in my bot I have an Obj, that has a webpage present. When Start pressed, the Obj starts the webpage, and that webpage has sound from it. I want to know if it's possible by a checkbox or something that indicates to shut the sound off, will ONLY stop the sound from the Obj control. [bASICALLY] I want to be able to mute the sound coming from the IE Control in my GUI. For (example.) #include <IE.au3> GuiCreate("",454,383,284,108) $button1 = GuiCtrlCreateButton("Start",161,321,115,45) $oIE = _IECreateEmbedded() $browser = GUICtrlCreateObj($oIE,5,5,440,300) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = -3 Then Exit If $msg = $button1 Then button1() Wend Func button1() _IENavigate($oIE,"A YOUTUBE VIDEO URL") ; I WANT TO MUTE THAT SOUND COMING FROM THE VIDEO. EndFunc So if it's possible, please help me out . Thanks. GUI. Link to comment Share on other sites More sharing options...
DaleHohm Posted November 10, 2009 Share Posted November 10, 2009 Try _IEAction($oIE, "stop") Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Gui Posted November 10, 2009 Author Share Posted November 10, 2009 Try _IEAction($oIE, "stop")DaleThanks I will Link to comment Share on other sites More sharing options...
Gui Posted November 10, 2009 Author Share Posted November 10, 2009 Didn't work.. But thanks for the reply , GUI Link to comment Share on other sites More sharing options...
DaleHohm Posted November 11, 2009 Share Posted November 11, 2009 It is an activeX control and you can control only what it allows you to control (via Javascript) only the methods and properties it exposes. There are javascript libraries that are actually written for this and I did see that Mute was one of the functions available... see http://code.google.com/apis/youtube/overview.html Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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