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 

Music Pausing When Headphones unplugged from jack

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
akifbayram
Guest





PostPosted: Wed Jun 25, 2008 4:31 pm    Post subject: Music Pausing When Headphones unplugged from jack Reply with quote

My realtek sound card on my laptop detects when I plug and unplug my headphone from the jack, but I would also like it to pause the music when i do this, just like on an iPod, or the MacBook with Breakaway software installed. I'm not sure if Autohotkey could even support this, but it would be a great script.
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Wed Jun 25, 2008 5:19 pm    Post subject: Reply with quote

what notification does it give you that you have unplugged? it may be detectable as is in ahk.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
akifbayram
Guest





PostPosted: Sun Jul 13, 2008 1:12 am    Post subject: re: Reply with quote

I don't recieve a notication, but it does move the volume slider to preset positions when I plug/unplug.
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Sun Jul 13, 2008 4:39 am    Post subject: Reply with quote

you may be able to detect that change using a timer, and having it see if the volume suddenly changes.

Moving this topic to ask for help.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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