AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script for muting line-in

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
SJM



Joined: 18 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 6:28 pm    Post subject: Script for muting line-in Reply with quote

Is it possible to create a script so i can mute/un-mute the line in playback volume with a mouse click? Middle mouse wheel pressed down would be good.

I could spend all day trying to figure it out (i will try) but if somebody could help me in the meantime?

Vista/Realtek

Thanks.


Last edited by SJM on Thu Mar 18, 2010 8:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Thu Mar 18, 2010 7:08 pm    Post subject: Reply with quote

http://www.autohotkey.com/docs/Hotkeys.htm
http://www.autohotkey.com/docs/KeyList.htm

search for mute here
http://www.autohotkey.com/docs/commands/Send.htm

The above contain the links to the needed information.
You can probably do it in less than an hour, including the reading assignments Wink

edit:
next time, choose a _useful_ subject time. You might as well have written "asking for help"

you also might consider searching the forum, with the keywords Arrow volume mute
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Thu Mar 18, 2010 7:46 pm    Post subject: Reply with quote

Hint1
It's only one line of code.

Hint2
Registered users can edit their own posts, including thread titles. If you would add "mute/un-mute" or something to that effect in the subject line, it saves me from having to do it. Smile
Back to top
View user's profile Send private message Visit poster's website
SJM



Joined: 18 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 8:41 pm    Post subject: Reply with quote

Sorry, i was in hurry.

I've posted on here several times before but i had to re-regester.

Used ahk scripts for years, all for poker.

I don't really have the time (or interest) in learning to be honest.

I spend a lot of time helping people on forums regarding subjects i know about: Satellite encryptions/dreamboxes & some poker. People want help? I help if i can.

I only wanted a pi$$y little script to save a few seconds here and there.

I normally have to be circumspect when i reply to people regarding encryptions as it can't be discussed on open forums usually.

This is just a bit of code, which i know little about, or want to either.

Maybe there's a disclaimer stating i must fully understand ahk if i'm going to use it?

Leaving "hints" of how i can do this is a little sad i think.

Maybe get over yourselves?

....ensing ban i think. Rolling Eyes
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Thu Mar 18, 2010 8:49 pm    Post subject: Reply with quote

I think most forums encourage learning over leaching. This one is no different; however, I appreciate your consideration in modifying the topic title.
Code:
MButton::SendInput {Volume_Mute}
Back to top
View user's profile Send private message Visit poster's website
SJM



Joined: 18 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 8:59 pm    Post subject: Reply with quote

Thanks, works a treat Very Happy

If anybody wants to learn about dreamboxes and cardsharing (sure you don't), then you can find me here: Very Happy

http://www.avforums.com/forums/index.php - PANORAMIC

http://www.satpimps.com/ - Dice Man
Back to top
View user's profile Send private message
SJM



Joined: 18 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 9:17 pm    Post subject: Reply with quote

Ahhh, that mutes the volume ok, but i wanted the line in - playback volume muted only.

I have my tv into the line in. I just wanted to be able to mute that but still have the pc volume - i need to be able to mute the volume from the tv. I can manually do this by just muting the playback volume in realtek.

No problems, thanks again.
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Thu Mar 18, 2010 9:27 pm    Post subject: Reply with quote

This might work, but you'll have to read the remarks on the SoundSet page.
Code:
MButton::SoundSet, +1, Line, Mute
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group