AutoHotkey Community

It is currently May 26th, 2012, 12:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: September 19th, 2008, 9:10 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2008, 3:48 pm 
Huh? No answers?

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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2008, 4:04 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2008, 9:34 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2008, 3:00 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
ToneDet is the only solution I've ever seen on these forums.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2008, 9:16 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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/topic34 ... heckifdone


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2008, 1:06 pm 
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.


Report this post
Top
  
Reply with quote  
PostPosted: September 22nd, 2008, 7:30 am 
Offline

Joined: December 20th, 2005, 4:15 am
Posts: 165
Location: Malaysia
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?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: JamixZol, Morpheus, RUBn, SKAN, sks, Yahoo [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group