Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB.NET] Mute Windows Media Player and VLC and Firefox etc

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iTz SWAT
I post too much
Reputation: 1

Joined: 20 Dec 2007
Posts: 2227
Location: Me.Location;

PostPosted: Fri Dec 24, 2010 4:37 am    Post subject: [VB.NET] Mute Windows Media Player and VLC and Firefox etc Reply with quote

I was just wondering, is it possible to mute WMP/VLC/Firefox using VB .Net 2008/2010?
I don't mean add a control into my form and make that mute, I mean mute the actual external program.
Thanks.

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Dec 24, 2010 6:49 am    Post subject: Reply with quote

this probably requires at least vista as the os.

go stomping through the msdn audio api pages.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Dec 24, 2010 2:34 pm    Post subject: Reply with quote

You can mute Windows Media Player using SendMessage. (Or COM if you feel like dealing with that disaster.)

WM_COMMAND with 0x00004981 as the wparam will send the mute message to the player.

(You can use Spy++ to get these values.)

For Firefox it would more or less so depend on what is playing the sound/music. You can specifically mute Firefox if you have Vista/Win7 as Slov said, or you can attempt to find the inner child in the browser that is playing the sound and mute that.

For VLC you can use Spy++ to find the control name/id of the mute button and use SendMessage to press it as well. Or if it has a WM_COMMAND or WM_USER equivalent you can use that as well.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites