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 

How to detect if there is no sound (music is finished)

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






PostPosted: Fri Sep 19, 2008 8:10 pm    Post subject: How to detect if there is no sound (music is finished) Reply with quote

I like to listen to StumbleAudio, but it expects me to vote on the pieces, so it stops after playing each song.

Is it possible to detect from an AHK script if the music is finished (the computer is silent), so I can click from the script automatically for the next song?
Back to top
Guest






PostPosted: Sat Sep 20, 2008 2:48 pm    Post subject: Reply with quote

Huh? No answers?

Thought it would be a trivial question for the experts. Is it really that hard to detect sllence?
Back to top
Guest






PostPosted: Sat Sep 20, 2008 3:04 pm    Post subject: Reply with quote

Anonymous wrote:
Huh? No answers?

Thought it would be a trivial question for the experts. Is it really that hard to detect sllence?
It maybe a trival question, but I think there is not a trivial solution. You might be better of detecting the "expects me to vote" screen/text/address.
I think this abiltiy to detect audio/no-audio has been discussed in this forum before, without any solution.
Back to top
Guest






PostPosted: Sat Sep 20, 2008 8:34 pm    Post subject: Reply with quote

Anonymous wrote:
You might be better of detecting the "expects me to vote" screen/text/address.


Actually, I would be better of not having to do pixel hacking to find out if the piece is finished, if sound detection worked. Smile

But if it's impossible then I'll have to search for pixels I guess.
Back to top
jaco0646



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

PostPosted: Sun Sep 21, 2008 2:00 am    Post subject: Reply with quote

ToneDet is the only solution I've ever seen on these forums.
Back to top
View user's profile Send private message Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Sun Sep 21, 2008 8:16 am    Post subject: Reply with quote

other ideas to listen music (not your solution)

a small internet radio freeware standalone listen/record
http://www.screamer-radio.com/

another idea with soundplay xy.mp3
http://www.autohotkey.com/forum/topic34795.html&highlight=checkifdone
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun Sep 21, 2008 12:06 pm    Post subject: Reply with quote

Probably possible with WMI or DirectSound (not easy, I guess).

HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat.
Back to top
Lemming



Joined: 20 Dec 2005
Posts: 165
Location: Malaysia

PostPosted: Mon Sep 22, 2008 6:30 am    Post subject: Why choose a difficult solution? Reply with quote

Not sure why you want to take the more difficult route when there are easier ways such as image detection, windows detection or program detection. Ahk is well-suited for these kinds of detection, and there are already copious amounts of code avail for these.

Relevant commands include ImageSearch, IfWinActive, IfWinExist, Process, WinWaitActive, WinWait, et al.

Anonymous wrote:
Huh? No answers?

Thought it would be a trivial question for the experts. Is it really that hard to detect sllence?
Back to top
View user's profile Send private message
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