AutID Posted January 6, 2014 Share Posted January 6, 2014 (edited) Hello, I am trying to update a project that i have for media and i was wondering, until now to be able to mute the media i used to use Send("{VOLUME_MUTE}"). However this is not a very good way to mute media since it mutes the volume of the computer. Is there an other way to mute it without having to mute the volume of the computer. Of course i don't mean controlclicks on the volume... Cheers Edited January 6, 2014 by AutID https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
AutID Posted January 6, 2014 Author Share Posted January 6, 2014 (edited) @Exit deleted his post. This post was a response to him. Don't know why he did this. Media mute means that the mute button will mute all media players. It also works on some flash players Edited January 6, 2014 by AutID https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
AutID Posted January 7, 2014 Author Share Posted January 7, 2014 Any other solutions? https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Jonniy Posted January 7, 2014 Share Posted January 7, 2014 (edited) Global $oWMP = ObjCreate("WMPlayer.ocx") $oWMP.Settings.mute = True Maybe this'll work for you. I don't know if it acutually mutes the whole programm, or just the wmplayer part. But I think it does, since if you click on the mixer, it seems to be muted. Edited January 7, 2014 by Jonniy Thanks for your help & have a good day. Yours sincerely, -Jonniy- Link to comment Share on other sites More sharing options...
AutID Posted January 7, 2014 Author Share Posted January 7, 2014 That will work like this: Local $loPlayer = ObjCreate("WMPlayer.OCX") Local $loItems = $loPlayer.MediaCollection Local $loSong= $loItems.add("C:\Users\me\Music\song.mp3") Local $loPlayList = $loPlayer.currentPLayList $loPlayList.AppendItem($loSong) $loPlayer.Controls.PLay() Sleep(5000) $loPlayer.Settings.mute = True Sleep(5000) $loPlayer.Settings.mute = False Sleep(5000) $loPlayer.Controls.Stop() $loPlayer.close but not when i am playing it manually... https://iblockify.wordpress.com/ 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