| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri Sep 19, 2008 8:10 pm Post subject: How to detect if there is no sound (music is finished) |
|
|
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
|
Posted: Sat Sep 20, 2008 2:48 pm Post subject: |
|
|
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
|
Posted: Sat Sep 20, 2008 3:04 pm Post subject: |
|
|
| 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
|
Posted: Sat Sep 20, 2008 8:34 pm Post subject: |
|
|
| 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.
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
|
Posted: Sun Sep 21, 2008 2:00 am Post subject: |
|
|
| ToneDet is the only solution I've ever seen on these forums. |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2212 Location: switzerland
|
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sun Sep 21, 2008 12:06 pm Post subject: |
|
|
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
|
Posted: Mon Sep 22, 2008 6:30 am Post subject: Why choose a difficult solution? |
|
|
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 |
|
 |
|