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 

detect if itunes or windows media player is playing

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



Joined: 20 Dec 2005
Posts: 61

PostPosted: Wed Nov 11, 2009 7:08 am    Post subject: detect if itunes or windows media player is playing Reply with quote

is there a way to detect if itunes or windows media player is playing a song?
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Wed Nov 11, 2009 9:12 am    Post subject: Reply with quote

If you mean, is there a universal way to detect whether both applications are playing audio, probably not.

I'm pretty sure you will have to figure it out separately for both.

Is this what you mean?
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
darchon
Guest





PostPosted: Wed Nov 11, 2009 10:41 am    Post subject: Reply with quote

yes and no. it does answer half of my question as to whether there's a universal way but since there's not, i'd like a specific answer to itunes and windows media player. thanks for taking the time to answer though.
Back to top
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Wed Nov 11, 2009 10:58 am    Post subject: Reply with quote

AFAICT this is the simplest way to tell if Itunes is playing.
Code:
ControlGetText, plyStat, Button10, ahk_class iTunes
    If plyStat Contains pause
   msgbox, Itunes is playing.
    else
   msgbox, Itunes is not playing.
This works in Itunes 8.1.1.10.

Looking for a way to return the status of WMP Wink.

edit:

Looks like your going to have to use COM to figure out wheter or not WMP is playing.
See here: http://www.autohotkey.com/forum/viewtopic.php?t=33686

IMO this is hell just to find out whether or not its playing and results will probably be OS and version dependent.

You could always cheat by getting the color of a pixel on the play button.

Good luck!
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
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